Home
last modified time | relevance | path

Searched refs:buffer_size_ (Results 1 – 12 of 12) sorted by relevance

/third_party/protobuf/src/google/protobuf/io/
Dprinter.cc51 buffer_size_(0), in Printer()
62 buffer_size_(0), in Printer()
70 if (buffer_size_ > 0 && !failed_) { in ~Printer()
71 output_->BackUp(buffer_size_); in ~Printer()
235 if (!output_->Next(&void_buffer, &buffer_size_)) { in Next()
240 } while (buffer_size_ == 0); in Next()
248 while (size > buffer_size_) { in CopyToBuffer()
251 if (buffer_size_ > 0) { in CopyToBuffer()
252 memcpy(buffer_, data, buffer_size_); in CopyToBuffer()
253 offset_ += buffer_size_; in CopyToBuffer()
[all …]
Dzero_copy_stream_impl_lite.cc207 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor()
234 buffer_used_ = copying_stream_->Read(buffer_.get(), buffer_size_); in Next()
291 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded()
309 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingOutputStreamAdaptor()
322 if (buffer_used_ == buffer_size_) { in Next()
329 *size = buffer_size_ - buffer_used_; in Next()
330 buffer_used_ = buffer_size_; in Next()
336 GOOGLE_CHECK_EQ(buffer_used_, buffer_size_) in BackUp()
370 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded()
Dtokenizer.cc200 buffer_size_(0), in Tokenizer()
222 if (buffer_size_ > buffer_pos_) { in ~Tokenizer()
223 input_->BackUp(buffer_size_ - buffer_pos_); in ~Tokenizer()
244 if (buffer_pos_ < buffer_size_) { in NextChar()
258 if (record_target_ != NULL && record_start_ < buffer_size_) { in Refresh()
260 buffer_size_ - record_start_); in Refresh()
268 if (!input_->Next(&data, &buffer_size_)) { in Refresh()
270 buffer_size_ = 0; in Refresh()
275 } while (buffer_size_ == 0); in Refresh()
Dprinter.h320 if (buffer_size_ == 0) { in push_back()
324 buffer_size_--; in push_back()
341 int buffer_size_; variable
Dzero_copy_stream_impl_lite.h244 const int buffer_size_; variable
333 const int buffer_size_; variable
Dtokenizer.h270 int buffer_size_; // Size of buffer_. variable
/third_party/protobuf/src/google/protobuf/util/
Djson_util.cc57 if (buffer_size_ > 0) { in ~ZeroCopyStreamByteSink()
58 stream_->BackUp(buffer_size_); in ~ZeroCopyStreamByteSink()
64 if (len <= buffer_size_) { in Append()
67 buffer_size_ -= len; in Append()
70 if (buffer_size_ > 0) { in Append()
71 memcpy(buffer_, bytes, buffer_size_); in Append()
72 bytes += buffer_size_; in Append()
73 len -= buffer_size_; in Append()
75 if (!stream_->Next(&buffer_, &buffer_size_)) { in Append()
77 buffer_size_ = 0; in Append()
Djson_util.h183 : stream_(stream), buffer_(NULL), buffer_size_(0) {} in ZeroCopyStreamByteSink()
191 int buffer_size_; variable
/third_party/nghttp2/src/
Dshrpx_downstream.h68 buffer_size_(0), in FieldStore()
80 const void add_extra_buffer_size(size_t n) { buffer_size_ += n; } in add_extra_buffer_size()
81 size_t buffer_size() const { return buffer_size_; } in buffer_size()
143 size_t buffer_size_; variable
Dshrpx_downstream.cc537 shrpx::add_header(buffer_size_, headers_, name, value, no_index, token); in add_header_token()
548 shrpx::append_last_header_key(balloc_, header_key_prev_, buffer_size_, in append_last_header_key()
553 shrpx::append_last_header_value(balloc_, header_key_prev_, buffer_size_, in append_last_header_value()
567 shrpx::add_header(buffer_size_, trailers_, name, value, no_index, token); in add_trailer_token()
578 shrpx::append_last_header_key(balloc_, trailer_key_prev_, buffer_size_, in append_last_trailer_key()
583 shrpx::append_last_header_value(balloc_, trailer_key_prev_, buffer_size_, in append_last_trailer_value()
/third_party/protobuf/src/google/protobuf/
Dtext_format.cc1224 buffer_size_(0), in TextGenerator()
1233 if (!failed_ && buffer_size_ > 0) { in ~TextGenerator()
1234 output_->BackUp(buffer_size_); in ~TextGenerator()
1303 while (size > buffer_size_) { in Write()
1306 if (buffer_size_ > 0) { in Write()
1307 memcpy(buffer_, data, buffer_size_); in Write()
1308 data += buffer_size_; in Write()
1309 size -= buffer_size_; in Write()
1312 failed_ = !output_->Next(&void_buffer, &buffer_size_); in Write()
1320 buffer_size_ -= size; in Write()
[all …]
/third_party/chromium/patch/
D0003-ohos-1115.patch51931 + munmap(temp_buffer.mapped_, temp_buffer.buffer_size_);
51974 + munmap(temp_buffer.mapped_, temp_buffer.buffer_size_);
52124 + uint32_t buffer_size_;