Home
last modified time | relevance | path

Searched refs:block_size_ (Results 1 – 2 of 2) 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()