Searched refs:ArrayWrapper (Results 1 – 6 of 6) sorted by relevance
/aosp12/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
H A D | array_wrapper.h | 20 class ArrayWrapper { 30 ArrayWrapper() : buffer_(nullptr), capacity_(0), end_(0) {} in ArrayWrapper() function 32 ArrayWrapper(pointer buffer, size_type capacity, size_type size) in ArrayWrapper() function 37 ArrayWrapper(pointer buffer, size_type size) in ArrayWrapper() function 38 : ArrayWrapper(buffer, size, size) {} in ArrayWrapper() 40 ArrayWrapper(const ArrayWrapper& other) { *this = other; } in ArrayWrapper() function 42 ArrayWrapper(ArrayWrapper&& other) noexcept { *this = std::move(other); } in ArrayWrapper() function 44 ArrayWrapper& operator=(const ArrayWrapper& other) { 56 ArrayWrapper& operator=(ArrayWrapper&& other) noexcept { 103 ArrayWrapper<T> WrapArray(T* buffer, SizeType size) { in WrapArray() [all …]
|
H A D | type_operators.h | 98 struct IsConvertible<std::vector<A, Any...>, ArrayWrapper<B>> 101 struct IsConvertible<ArrayWrapper<A>, std::vector<B, Any...>> 110 struct IsConvertible<ArrayWrapper<A>, std::array<B, Size>> 113 struct IsConvertible<std::array<A, Size>, ArrayWrapper<B>>
|
H A D | serialization.h | 275 inline std::size_t GetSerializedSize(const ArrayWrapper<T>&); 382 inline std::size_t GetSerializedSize(const ArrayWrapper<T>& v) { 631 inline void SerializeType(const ArrayWrapper<T>& value, void*& buffer) { 859 inline void SerializeObject(const ArrayWrapper<T>&, MessageWriter*, void*&); 992 inline void SerializeObject(const ArrayWrapper<T>& v, MessageWriter* writer, 1423 inline ErrorType DeserializeObject(ArrayWrapper<T>*, MessageReader*, 1841 inline ErrorType DeserializeObject(ArrayWrapper<T>* value,
|
H A D | encoding.h | 460 inline constexpr EncodingType EncodeType(const ArrayWrapper<T>& value) { in EncodeType()
|
/aosp12/system/keymaster/include/keymaster/ |
H A D | mem.h | 148 template <typename T> class ArrayWrapper { 150 ArrayWrapper(T* array, size_t size) : begin_(array), end_(array + size) {} in ArrayWrapper() function 160 template <typename T> ArrayWrapper<T> array_range(T* begin, size_t length) { in array_range() 161 return ArrayWrapper<T>(begin, length); in array_range() 164 template <typename T, size_t n> ArrayWrapper<T> array_range(T (&a)[n]) { in array_range() 165 return ArrayWrapper<T>(a, n); in array_range()
|
/aosp12/frameworks/native/libs/vr/libpdx/ |
H A D | serialization_tests.cpp | 1047 TEST(SerializationTest, ArrayWrapper) { in TEST() argument 1051 ArrayWrapper<std::uint8_t> wrapper; in TEST() 2217 TEST(DeserializationTest, ArrayWrapper) { in TEST() argument 2226 ArrayWrapper<std::uint8_t> wrapper(result.data(), result.capacity()); in TEST()
|