Home
last modified time | relevance | path

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

/external/libchrome/mojo/public/cpp/bindings/lib/
Dnative_struct_serialization.h89 ArrayHeader* header = reinterpret_cast<ArrayHeader*>(data->data.Get()); in Deserialize()
90 DCHECK_GE(header->num_bytes, sizeof(ArrayHeader)); in Deserialize()
91 header->num_bytes -= sizeof(ArrayHeader); in Deserialize()
98 header->num_bytes + sizeof(ArrayHeader)); in Deserialize()
110 header->num_bytes += sizeof(ArrayHeader); in Deserialize()
Darray_internal.h50 (std::numeric_limits<uint32_t>::max() - sizeof(ArrayHeader)) /
55 return sizeof(ArrayHeader) + sizeof(StorageType) * num_elements; in GetStorageSize()
97 return sizeof(ArrayHeader) + ((num_elements + 7) / 8);
126 static bool ValidateElements(const ArrayHeader* header,
151 static bool ValidateElements(const ArrayHeader* header,
186 static bool ValidateElements(const ArrayHeader* header,
237 static bool ValidateElements(const ArrayHeader* header,
314 if (!validation_context->IsValidRange(data, sizeof(ArrayHeader))) {
319 const ArrayHeader* header = static_cast<const ArrayHeader*>(data);
377 internal::ArrayHeader header_;
Dbindings_internal.h102 struct ArrayHeader { struct
106 static_assert(sizeof(ArrayHeader) == 8, "Bad_sizeof(ArrayHeader)"); argument
/external/libchrome/mojo/public/cpp/bindings/tests/
Dunion_unittest.cc471 mojo::internal::ArrayHeader* array_header = in TEST()
472 reinterpret_cast<mojo::internal::ArrayHeader*>(ptr + *ptr); in TEST()