Home
last modified time | relevance | path

Searched refs:buffer_size_ (Results 1 – 21 of 21) 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/boost/boost/nowide/
Dfilebuf.hpp69 buffer_size_(BUFSIZ), buffer_(0), file_(0), owns_buffer_(false), last_char_(), in basic_filebuf()
93 swap(buffer_size_, rhs.buffer_size_); in swap()
190 if(buffer_size_ > 0) in make_buffer()
192 buffer_ = new char[buffer_size_]; in make_buffer()
213 buffer_size_ = (n >= 0) ? static_cast<size_t>(n) : 0; in setbuf()
230 setp(buffer_, buffer_ + buffer_size_); in overflow()
238 if(buffer_size_ > 0) in overflow()
241 setp(buffer_, buffer_ + buffer_size_); in overflow()
278 if(buffer_size_ == 0) in underflow()
288 const size_t n = std::fread(buffer_, 1, buffer_size_, file_); in underflow()
[all …]
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/cmsis-nn/int8/
Ddwconv_int8_coder.cc142 buffer_size_ = 0; in CheckSupportOptimize()
145 buffer_size_ = input_ch_ * kernel_x_ * kernel_y_ * sizeof(int16_t); in CheckSupportOptimize()
149 buffer_size_ = 0; in CheckSupportOptimize()
154 if (buffer_size_ != 0) { in InitTmpBuffer()
155 buffer = static_cast<int16_t *>(allocator_->Malloc(kNumberTypeInt16, buffer_size_, kWorkspace)); in InitTmpBuffer()
Dconv2d_int8_coder.cc48 code.CodeFunction("memset", buffer_, 0, buffer_size_); in DoCode()
153 buffer_size_ = in InitTmpBuffer()
158 buffer_size_ = in InitTmpBuffer()
164 buffer_size_ = 0; in InitTmpBuffer()
170 buffer_ = static_cast<int16_t *>(allocator_->Malloc(kNumberTypeInt16, buffer_size_, kWorkspace)); in InitTmpBuffer()
Dpooling_int8_coder.cc33 buffer_size_ = input_tensor_->Channel() * sizeof(int32_t); in Prepare()
34 … buffer_ = static_cast<int32_t *>(allocator_->Malloc(kNumberTypeInt32, buffer_size_, kWorkspace)); in Prepare()
Dpooling_int8_coder.h57 size_t buffer_size_{0};
Dconv2d_int8_coder.h66 size_t buffer_size_{0};
Ddwconv_int8_coder.h74 size_t buffer_size_{0};
/third_party/nghttp2/src/
Dshrpx_downstream.h64 buffer_size_(0), in FieldStore()
75 const void add_extra_buffer_size(size_t n) { buffer_size_ += n; } in add_extra_buffer_size()
76 size_t buffer_size() const { return buffer_size_; } in buffer_size()
138 size_t buffer_size_; variable
Dshrpx_downstream.cc527 shrpx::add_header(buffer_size_, headers_, name, value, no_index, token); in add_header_token()
538 shrpx::append_last_header_key(balloc_, header_key_prev_, buffer_size_, in append_last_header_key()
543 shrpx::append_last_header_value(balloc_, header_key_prev_, buffer_size_, in append_last_header_value()
557 shrpx::add_header(buffer_size_, trailers_, name, value, no_index, token); in add_trailer_token()
568 shrpx::append_last_header_key(balloc_, trailer_key_prev_, buffer_size_, in append_last_trailer_key()
573 shrpx::append_last_header_value(balloc_, trailer_key_prev_, buffer_size_, in append_last_trailer_value()
/third_party/boost/boost/iostreams/
Dcopy.hpp154 : src_(src), snk_(snk), buffer_size_(buffer_size) in copy_operation()
158 return copy_impl( src_, snk_, buffer_size_, in operator ()()
165 std::streamsize buffer_size_; member in boost::iostreams::detail::copy_operation
/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/boost/boost/spirit/home/support/detail/lexer/
Dfile_input.hpp136 const std::streamsize buffer_size_ = 4096, in basic_file_input() argument
140 _buffer_size (buffer_size_), in basic_file_input()
/third_party/chromium/patch/
D0003-3.2-Beta3-1115.patch48071 + munmap(temp_buffer.mapped_, temp_buffer.buffer_size_);
48114 + munmap(temp_buffer.mapped_, temp_buffer.buffer_size_);
48264 + uint32_t buffer_size_;