@@ -388,6 +388,11 @@ class Parcel {
388388 LIBBINDER_EXPORTED status_t
389389 writeUniqueFileDescriptorVector (const std::vector<binder::unique_fd>& val);
390390
391+ // WARNING: deprecated and incompatible with AIDL. You should use Parcelable
392+ // definitions outside of Parcel to represent shared memory, such as
393+ // IMemory or with ParcelFileDescriptor. We should remove this, or move it to be
394+ // external to Parcel, it's not a very encapsulated API.
395+ //
391396 // Writes a blob to the parcel.
392397 // If the blob is small, then it is stored in-place, otherwise it is
393398 // transferred by way of an anonymous shared memory region. Prefer sending
@@ -629,6 +634,11 @@ class Parcel {
629634 LIBBINDER_EXPORTED status_t
630635 readUniqueFileDescriptorVector (std::vector<binder::unique_fd>* val) const ;
631636
637+ // WARNING: deprecated and incompatible with AIDL. You should use Parcelable
638+ // definitions outside of Parcel to represent shared memory, such as
639+ // IMemory or with ParcelFileDescriptor. We should remove this, or move it to be
640+ // external to Parcel, it's not a very encapsulated API.
641+ //
632642 // Reads a blob from the parcel.
633643 // The caller should call release() on the blob after reading its contents.
634644 LIBBINDER_EXPORTED status_t readBlob (size_t len, ReadableBlob* outBlob) const ;
0 commit comments