Lines Matching defs:data
111 // The source data may not be properly aligned, and unaligned float reads
112 // cause SIGBUS on some ARM platforms, so force using memcpy to copy the data
123 // The source data may not be properly aligned, and unaligned double reads
124 // cause SIGBUS on some ARM platforms, so force using memcpy to copy the data
169 bool PickleIterator::ReadData(const char** data, int* length) {
171 *data = 0;
176 return ReadBytes(data, *length);
179 bool PickleIterator::ReadBytes(const char** data, int length) {
183 *data = read_from;
209 Pickle::Pickle(const char* data, int data_len)
210 : header_(reinterpret_cast<Header*>(const_cast<char*>(data))),
223 // If there is anything wrong with the data, we're not going to use it.
268 return WriteBytes(value.data(), static_cast<int>(value.size()));
275 return WriteBytes(value.data(),
283 return WriteBytes(value.data(),
287 bool Pickle::WriteData(const char* data, int length) {
288 return length >= 0 && WriteInt(length) && WriteBytes(data, length);
291 bool Pickle::WriteBytes(const void* data, int length) {
292 WriteBytesCommon(data, length);
335 template <size_t length> void Pickle::WriteBytesStatic(const void* data) {
336 WriteBytesCommon(data, length);
339 template void Pickle::WriteBytesStatic<2>(const void* data);
340 template void Pickle::WriteBytesStatic<4>(const void* data);
341 template void Pickle::WriteBytesStatic<8>(const void* data);
343 inline void Pickle::WriteBytesCommon(const void* data, size_t length) {
358 memcpy(write, data, length);