1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MINIBIND_PARCEL_H_
6 #define MINIBIND_PARCEL_H_
11 #include <linux/binder.h>
23 void WriteInterfaceToken(const std
::string
& str
);
24 void WriteUTF8(const std
::string
& str
);
25 void WriteUInt32(uint32_t ui32
);
27 bool ReadUInt32(uint32_t* ui32
);
28 bool ReadBytes(size_t count
, void* buffer
);
30 binder_uintptr_t
DataPointer() const;
32 size_t DataSize() const;
33 void SetDataSize(size_t size
);
35 size_t DataPosition() const;
36 void SetDataPosition(size_t pos
);
41 size_t data_position_
;
42 std
::vector
<uint8_t> data_
;
43 std
::vector
<struct flat_binder_object
> objects_
;
46 } // namespace minibind
48 #endif // MINIBIND_PARCEL_H_