// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MINIBIND_PARCEL_H_ #define MINIBIND_PARCEL_H_ #include #include #include #include #include namespace minibind { class Parcel { public: Parcel(); ~Parcel(); void WriteInterfaceToken(const std::string& str); void WriteUTF8(const std::string& str); void WriteUInt32(uint32_t ui32); binder_uintptr_t DataPointer() const; size_t DataSize() const; void SetDataSize(size_t size); void Print() const; private: std::vector data_; std::vector objects_; }; } // namespace minibind #endif // MINIBIND_PARCEL_H_