Home
last modified time | relevance | path

Searched refs:BigBuffer (Results 1 – 19 of 19) sorted by relevance

/external/libchrome/mojo/public/cpp/base/
Dbig_buffer.cc39 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 …]
Dbig_buffer_unittest.cc20 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 …]
Dbig_buffer.h20 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 …]
Dbig_buffer_mojom_traits.cc42 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 …]
Dbig_buffer_mojom_traits.h36 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()
Dbig_string_mojom_traits.cc12 mojo_base::BigBuffer StructTraits<mojo_base::mojom::BigStringDataView,
15 return mojo_base::BigBuffer( in data()
23 mojo_base::BigBuffer buffer; in Read()
Dref_counted_memory_mojom_traits.cc12 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()
Dstring16_mojom_traits.cc22 mojo_base::BigBuffer
26 return mojo_base::BigBuffer( in data()
34 mojo_base::BigBuffer buffer; in Read()
Dbig_buffer.typemap12 type_mappings = [ "mojo_base.mojom.BigBuffer=mojo_base::BigBuffer[move_only]" ]
Dbig_string_mojom_traits.h20 static mojo_base::BigBuffer data(const std::string& str); in COMPONENT_EXPORT()
Dref_counted_memory_mojom_traits.h22 static mojo_base::BigBuffer data( in COMPONENT_EXPORT()
Dstring16_mojom_traits.h43 static mojo_base::BigBuffer data(const base::string16& str); in COMPONENT_EXPORT()
/external/libchrome/mojo/public/java/base/src/org/chromium/mojo_base/
DBigBufferUtil.java10 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/
DVASprintfTest.cpp36 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/
Dbig_buffer.mojom15 union BigBuffer {
Dref_counted_memory.mojom13 mojo_base.mojom.BigBuffer data;
Dbig_string.mojom18 mojo_base.mojom.BigBuffer data;
Dstring16.mojom26 BigBuffer data;
/external/libchrome/ipc/
Dipc.mojom17 mojo_base.mojom.BigBuffer buffer;