Home
last modified time | relevance | path

Searched refs:WTFArray (Results 1 – 6 of 6) sorted by relevance

/external/libmojo/mojo/public/cpp/bindings/
Dwtf_array.h28 class WTFArray {
31 WTFArray() : is_null_(false) {} in WTFArray() function
33 WTFArray(std::nullptr_t null_pointer) : is_null_(true) {} in WTFArray() function
38 explicit WTFArray(size_t size) : vec_(size), is_null_(false) {} in WTFArray() function
39 ~WTFArray() {} in ~WTFArray()
42 WTFArray(WTF::Vector<T>&& other) : vec_(std::move(other)), is_null_(false) {} in WTFArray() function
43 WTFArray(WTFArray&& other) : is_null_(true) { Take(&other); } in WTFArray() function
45 WTFArray& operator=(WTF::Vector<T>&& other) {
50 WTFArray& operator=(WTFArray&& other) {
55 WTFArray& operator=(std::nullptr_t null_pointer) {
[all …]
Darray_traits_wtf.h14 struct ArrayTraits<WTFArray<U>> {
17 static bool IsNull(const WTFArray<U>& input) { return input.is_null(); }
18 static void SetToNull(WTFArray<U>* output) { *output = nullptr; }
20 static size_t GetSize(const WTFArray<U>& input) { return input.size(); }
22 static U* GetData(WTFArray<U>& input) { return &input.front(); }
24 static const U* GetData(const WTFArray<U>& input) { return &input.front(); }
26 static U& GetAt(WTFArray<U>& input, size_t index) { return input[index]; }
28 static const U& GetAt(const WTFArray<U>& input, size_t index) {
32 static bool Resize(WTFArray<U>& input, size_t size) {
/external/libmojo/mojo/public/cpp/bindings/tests/
Dwtf_array_unittest.cc19 ARRAY_COMMON_TEST(WTFArray, NullAndEmpty) in ARRAY_COMMON_TEST() argument
20 ARRAY_COMMON_TEST(WTFArray, Basic) in ARRAY_COMMON_TEST()
21 ARRAY_COMMON_TEST(WTFArray, Bool) in ARRAY_COMMON_TEST()
22 ARRAY_COMMON_TEST(WTFArray, Handle) in ARRAY_COMMON_TEST()
23 ARRAY_COMMON_TEST(WTFArray, HandlesAreClosed) in ARRAY_COMMON_TEST()
24 ARRAY_COMMON_TEST(WTFArray, Clone) in ARRAY_COMMON_TEST()
25 ARRAY_COMMON_TEST(WTFArray, Serialization_ArrayOfPOD) in ARRAY_COMMON_TEST()
26 ARRAY_COMMON_TEST(WTFArray, Serialization_EmptyArrayOfPOD) in ARRAY_COMMON_TEST()
27 ARRAY_COMMON_TEST(WTFArray, Serialization_ArrayOfArrayOfPOD) in ARRAY_COMMON_TEST()
28 ARRAY_COMMON_TEST(WTFArray, Serialization_ArrayOfBool) in ARRAY_COMMON_TEST()
[all …]
Dwtf_types_unittest.cc110 WTFArray<WTF::String> strs = ConstructStringArray(); in TEST_F()
124 WTFArray<WTF::String> strs2; in TEST_F()
152 WTFArray<WTF::String> strs = ConstructStringArray(); in TEST_F()
242 WTFArray<uint8_t> data = blink::TestWTFStruct::Serialize(&input); in TEST_F()
Dmap_common_test.h21 class WTFArray; variable
57 using ArrayType = WTFArray<T>;
/external/libmojo/mojo/public/tools/bindings/generators/cpp_templates/
Dwrapper_class_declaration.tmpl55 {%- set serialization_result_type = "mojo::WTFArray<uint8_t>"