Lines Matching refs:BigBuffer
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()
61 return const_cast<uint8_t*>(const_cast<const BigBuffer*>(this)->data()); in data()
64 const uint8_t* BigBuffer::data() const { in data()
78 size_t BigBuffer::size() const { in size()
95 if (bytes.size() > BigBuffer::kMaxInlineBytes) { in BigBufferView()
98 storage_type_ = BigBuffer::StorageType::kSharedMemory; in BigBufferView()
108 storage_type_ = BigBuffer::StorageType::kBytes; in BigBufferView()
119 storage_type_ = BigBuffer::StorageType::kBytes; in SetBytes()
127 storage_type_ = BigBuffer::StorageType::kSharedMemory; in SetSharedMemory()
132 if (storage_type_ == BigBuffer::StorageType::kBytes) { in data()
143 BigBuffer BigBufferView::ToBigBuffer(BigBufferView view) { in ToBigBuffer()
144 BigBuffer buffer; in ToBigBuffer()
146 if (view.storage_type_ == BigBuffer::StorageType::kBytes) { in ToBigBuffer()