Home
last modified time | relevance | path

Searched refs:ArrayHeader (Results 1 – 4 of 4) sorted by relevance

/external/libmojo/mojo/public/cpp/bindings/lib/
Dnative_struct_serialization.h37 return Align(sizer.payload_size() + sizeof(ArrayHeader)); in PrepareToSerialize()
53 size_t total_size = pickle.payload_size() + sizeof(ArrayHeader); in Serialize()
57 ArrayHeader* header = in Serialize()
58 reinterpret_cast<ArrayHeader*>(buffer->Allocate(total_size)); in Serialize()
61 memcpy(reinterpret_cast<char*>(header) + sizeof(ArrayHeader), in Serialize()
85 ArrayHeader* header = reinterpret_cast<ArrayHeader*>(data); in Deserialize()
86 DCHECK_GE(header->num_bytes, sizeof(ArrayHeader)); in Deserialize()
87 header->num_bytes -= sizeof(ArrayHeader); in Deserialize()
94 header->num_bytes + sizeof(ArrayHeader)); in Deserialize()
101 header->num_bytes += sizeof(ArrayHeader); in Deserialize()
Darray_internal.h47 (std::numeric_limits<uint32_t>::max() - sizeof(ArrayHeader)) /
52 return sizeof(ArrayHeader) + sizeof(StorageType) * num_elements; in GetStorageSize()
94 return sizeof(ArrayHeader) + ((num_elements + 7) / 8);
123 static bool ValidateElements(const ArrayHeader* header,
148 static bool ValidateElements(const ArrayHeader* header,
183 static bool ValidateElements(const ArrayHeader* header,
234 static bool ValidateElements(const ArrayHeader* header,
293 if (!validation_context->IsValidRange(data, sizeof(ArrayHeader))) {
298 const ArrayHeader* header = static_cast<const ArrayHeader*>(data);
356 internal::ArrayHeader header_;
Dbindings_internal.h105 struct ArrayHeader { struct
109 static_assert(sizeof(ArrayHeader) == 8, "Bad_sizeof(ArrayHeader)"); argument
/external/libmojo/mojo/public/cpp/bindings/tests/
Dunion_unittest.cc401 mojo::internal::ArrayHeader* array_header = in TEST()
402 reinterpret_cast<mojo::internal::ArrayHeader*>(ptr + *ptr); in TEST()