Home
last modified time | relevance | path

Searched refs:block_size_ (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tools/aapt2/util/
DBigBuffer.cpp30 if (block.block_size_ - block.size >= size) { in NextBlockImpl()
38 const size_t actual_size = std::max(block_size_, size); in NextBlockImpl()
47 block.block_size_ = actual_size; in NextBlockImpl()
57 if (block.size != block.block_size_) { in NextBlock()
59 size_t size = block.block_size_ - block.size; in NextBlock()
60 block.size = block.block_size_; in NextBlock()
69 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[block_size_]()); in NextBlock()
71 block.size = block_size_; in NextBlock()
72 block.block_size_ = block_size_; in NextBlock()
74 size_ += block_size_; in NextBlock()
[all …]
DBigBuffer.h60 size_t block_size_; member
131 size_t block_size_; variable
137 : block_size_(block_size), size_(0) {} in BigBuffer()
140 : block_size_(rhs.block_size_), in BigBuffer()
146 inline size_t BigBuffer::block_size() const { return block_size_; } in block_size()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dbytestream_unittest.cc51 : data_(data), block_size_(block_size) {} in MockByteSource()
55 return data_.substr(0, block_size_); in Peek()
61 int block_size_; member in google::protobuf::strings::__anon62d99d070111::MockByteSource
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc62 block_size_(block_size > 0 ? block_size : size), in ArrayInputStream()
72 last_returned_size_ = std::min(block_size_, size_ - position_); in Next()
115 block_size_(block_size > 0 ? block_size : size), in ArrayOutputStream()
125 last_returned_size_ = std::min(block_size_, size_ - position_); in Next()
Dzero_copy_stream_impl_lite.h88 const int block_size_; // How many bytes to return at a time. variable
120 const int block_size_; // How many bytes to return at a time. variable