Lines Matching refs:block
29 Block& block = blocks_.back(); in NextBlockImpl() local
30 if (block.block_size_ - block.size >= size) { in NextBlockImpl()
31 void* out_buffer = block.buffer.get() + block.size; in NextBlockImpl()
32 block.size += size; in NextBlockImpl()
40 Block block = {}; in NextBlockImpl() local
43 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[actual_size]()); in NextBlockImpl()
44 CHECK(block.buffer); in NextBlockImpl()
46 block.size = size; in NextBlockImpl()
47 block.block_size_ = actual_size; in NextBlockImpl()
49 blocks_.push_back(std::move(block)); in NextBlockImpl()
56 Block& block = blocks_.back(); in NextBlock() local
57 if (block.size != block.block_size_) { in NextBlock()
58 void* out_buffer = block.buffer.get() + block.size; in NextBlock()
59 size_t size = block.block_size_ - block.size; in NextBlock()
60 block.size = block.block_size_; in NextBlock()
68 Block block = {}; in NextBlock() local
69 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[block_size_]()); in NextBlock()
70 CHECK(block.buffer); in NextBlock()
71 block.size = block_size_; in NextBlock()
72 block.block_size_ = block_size_; in NextBlock()
73 blocks_.push_back(std::move(block)); in NextBlock()
81 for (const Block& block : blocks_) { in to_string() local
82 result.append(block.buffer.get(), block.buffer.get() + block.size); in to_string()