Lines Matching defs:data

19 // PickleIterator reads data from a Pickle. The Pickle object must remain valid
43 bool ReadData(const char** data, int* length) WARN_UNUSED_RESULT;
44 bool ReadBytes(const char** data, int length) WARN_UNUSED_RESULT;
97 // buffer is exposed as the "data" of the Pickle. This "data" can be passed
102 // not keep track of the type of data written to it.
104 // The Pickle's data has a header which contains the size of the Pickle's
119 // Initializes a Pickle from a const block of data. The data is not copied;
120 // instead the data is merely referenced by this Pickle. Only const methods
122 // padding size is deduced from the data length.
123 Pickle(const char* data, int data_len);
138 // Returns the size of the Pickle's data.
141 // Returns the data for this Pickle.
142 const void* data() const { return header_; }
195 // A pointer to the data will be placed in *data, and the length will be
197 // be scoped to the lifetime of the message (or until the message data is
200 const char** data,
202 return iter->ReadData(data, length);
204 // A pointer to the data will be placed in *data. The caller specifies the
207 // lifetime of the message (or until the message data is mutated).
209 const char** data,
211 return iter->ReadBytes(data, length);
262 bool WriteData(const char* data, int length);
266 bool WriteBytes(const void* data, int length);
292 // The payload is the pickle data immediately following the header.
326 // Find the end of the pickled data that starts at range_start. Returns NULL
327 // if the entire Pickle is not found in the given data range.
339 size_t header_size_; // Supports extra data between header and payload.
348 template<size_t length> void BASE_EXPORT WriteBytesStatic(const void* data);
351 template <typename T> bool WritePOD(const T& data) {
352 WriteBytesStatic<sizeof(data)>(&data);
355 inline void WriteBytesCommon(const void* data, size_t length);