/external/libchrome/mojo/public/cpp/base/ |
D | big_buffer.cc | 39 constexpr size_t BigBuffer::kMaxInlineBytes; 41 BigBuffer::BigBuffer() : storage_type_(StorageType::kBytes) {} in BigBuffer() function in mojo_base::BigBuffer 43 BigBuffer::BigBuffer(BigBuffer&& other) = default; 45 BigBuffer::BigBuffer(base::span<const uint8_t> data) { in BigBuffer() function in mojo_base::BigBuffer 49 BigBuffer::BigBuffer(const std::vector<uint8_t>& data) in BigBuffer() function in mojo_base::BigBuffer 50 : BigBuffer(base::make_span(data)) {} in BigBuffer() 52 BigBuffer::BigBuffer(internal::BigBufferSharedMemoryRegion shared_memory) in BigBuffer() function in mojo_base::BigBuffer 56 BigBuffer::~BigBuffer() = default; 58 BigBuffer& BigBuffer::operator=(BigBuffer&& other) = default; 60 uint8_t* BigBuffer::data() { in data() [all …]
|
D | big_buffer_unittest.cc | 20 bool BufferEquals(const BigBuffer& a, const BigBuffer& b) { in BufferEquals() 28 BigBuffer in; in TEST() 29 BigBuffer out; in TEST() 30 EXPECT_EQ(BigBuffer::StorageType::kBytes, in.storage_type()); in TEST() 33 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::BigBuffer>(&in, &out)); in TEST() 35 EXPECT_EQ(BigBuffer::StorageType::kBytes, out.storage_type()); in TEST() 40 BigBuffer in(std::vector<uint8_t>{1, 2, 3}); in TEST() 41 EXPECT_EQ(BigBuffer::StorageType::kBytes, in.storage_type()); in TEST() 43 BigBuffer out; in TEST() 44 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::BigBuffer>(&in, &out)); in TEST() [all …]
|
D | big_buffer.h | 20 class BigBuffer; variable 42 friend class mojo_base::BigBuffer; in COMPONENT_EXPORT() 65 class COMPONENT_EXPORT(MOJO_BASE) BigBuffer { in COMPONENT_EXPORT() 75 BigBuffer(); in COMPONENT_EXPORT() 76 BigBuffer(BigBuffer&& other); in COMPONENT_EXPORT() 81 BigBuffer(base::span<const uint8_t> data); in COMPONENT_EXPORT() 84 BigBuffer(const std::vector<uint8_t>& data); in COMPONENT_EXPORT() 88 explicit BigBuffer(internal::BigBufferSharedMemoryRegion shared_memory); in COMPONENT_EXPORT() 90 ~BigBuffer(); in COMPONENT_EXPORT() 92 BigBuffer& operator=(BigBuffer&& other); in COMPONENT_EXPORT() [all …]
|
D | big_buffer_mojom_traits.cc | 42 UnionTraits<mojo_base::mojom::BigBufferDataView, mojo_base::BigBuffer>::GetTag( in GetTag() 43 const mojo_base::BigBuffer& buffer) { in GetTag() 45 case mojo_base::BigBuffer::StorageType::kBytes: in GetTag() 47 case mojo_base::BigBuffer::StorageType::kSharedMemory: in GetTag() 57 UnionTraits<mojo_base::mojom::BigBufferDataView, mojo_base::BigBuffer>::bytes( in bytes() 58 const mojo_base::BigBuffer& buffer) { in bytes() 65 mojo_base::BigBuffer>::shared_memory(mojo_base::BigBuffer& buffer) { in shared_memory() 70 bool UnionTraits<mojo_base::mojom::BigBufferDataView, mojo_base::BigBuffer>:: 71 Read(mojo_base::mojom::BigBufferDataView data, mojo_base::BigBuffer* out) { in Read() 76 *out = mojo_base::BigBuffer(bytes_view); in Read() [all …]
|
D | big_buffer_mojom_traits.h | 36 UnionTraits<mojo_base::mojom::BigBufferDataView, mojo_base::BigBuffer> { in COMPONENT_EXPORT() 38 const mojo_base::BigBuffer& buffer); in COMPONENT_EXPORT() 40 static const std::vector<uint8_t>& bytes(const mojo_base::BigBuffer& buffer); in COMPONENT_EXPORT() 42 mojo_base::BigBuffer& buffer); in COMPONENT_EXPORT() 45 mojo_base::BigBuffer* out); in COMPONENT_EXPORT()
|
D | big_string_mojom_traits.cc | 12 mojo_base::BigBuffer StructTraits<mojo_base::mojom::BigStringDataView, 15 return mojo_base::BigBuffer( in data() 23 mojo_base::BigBuffer buffer; in Read()
|
D | ref_counted_memory_mojom_traits.cc | 12 mojo_base::BigBuffer StructTraits<mojo_base::mojom::RefCountedMemoryDataView, 15 return mojo_base::BigBuffer(base::make_span(in->front(), in->size())); in data() 37 mojo_base::BigBuffer buffer; in Read()
|
D | string16_mojom_traits.cc | 22 mojo_base::BigBuffer 26 return mojo_base::BigBuffer( in data() 34 mojo_base::BigBuffer buffer; in Read()
|
D | big_buffer.typemap | 12 type_mappings = [ "mojo_base.mojom.BigBuffer=mojo_base::BigBuffer[move_only]" ]
|
D | big_string_mojom_traits.h | 20 static mojo_base::BigBuffer data(const std::string& str); in COMPONENT_EXPORT()
|
D | ref_counted_memory_mojom_traits.h | 22 static mojo_base::BigBuffer data( in COMPONENT_EXPORT()
|
D | string16_mojom_traits.h | 43 static mojo_base::BigBuffer data(const base::string16& str); in COMPONENT_EXPORT()
|
/external/libchrome/mojo/public/java/base/src/org/chromium/mojo_base/ |
D | BigBufferUtil.java | 10 import org.chromium.mojo_base.mojom.BigBuffer; 23 public static byte[] getBytesFromBigBuffer(BigBuffer buffer) { in getBytesFromBigBuffer() 24 if (buffer.which() == BigBuffer.Tag.Bytes) { in getBytesFromBigBuffer() 38 public static BigBuffer createBigBufferFromBytes(byte[] bytes) { in createBigBufferFromBytes() 39 BigBuffer buffer = new BigBuffer(); in createBigBufferFromBytes()
|
/external/llvm-project/lldb/unittests/Utility/ |
D | VASprintfTest.cpp | 36 llvm::SmallString<32> BigBuffer; in TEST() local 37 ASSERT_TRUE(Sprintf(BigBuffer, "%s", TestStr.c_str())); in TEST() 38 EXPECT_STREQ(TestStr.c_str(), BigBuffer.c_str()); in TEST() 39 EXPECT_EQ(TestStr.size(), BigBuffer.size()); in TEST()
|
/external/libchrome/mojo/public/mojom/base/ |
D | big_buffer.mojom | 15 union BigBuffer {
|
D | ref_counted_memory.mojom | 13 mojo_base.mojom.BigBuffer data;
|
D | big_string.mojom | 18 mojo_base.mojom.BigBuffer data;
|
D | string16.mojom | 26 BigBuffer data;
|
/external/libchrome/ipc/ |
D | ipc.mojom | 17 mojo_base.mojom.BigBuffer buffer;
|