Home
last modified time | relevance | path

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

12

/external/protobuf/src/google/protobuf/io/
Dcoded_stream.cc620 buffer_size_(0), in CodedOutputStream()
636 buffer_size_(0), in CodedOutputStream()
655 if (buffer_size_ > 0) { in Trim()
656 output_->BackUp(buffer_size_); in Trim()
657 total_bytes_ -= buffer_size_; in Trim()
658 buffer_size_ = 0; in Trim()
666 while (count > buffer_size_) { in Skip()
667 count -= buffer_size_; in Skip()
676 if (buffer_size_ == 0 && !Refresh()) return false; in GetDirectBufferPointer()
679 *size = buffer_size_; in GetDirectBufferPointer()
[all …]
Dzero_copy_stream_impl_lite.cc255 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor()
283 buffer_used_ = copying_stream_->Read(buffer_.get(), buffer_size_); in Next()
341 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded()
361 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingOutputStreamAdaptor()
377 if (buffer_used_ == buffer_size_) { in Next()
384 *size = buffer_size_ - buffer_used_; in Next()
385 buffer_used_ = buffer_size_; in Next()
391 GOOGLE_CHECK_EQ(buffer_used_, buffer_size_) in BackUp()
425 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded()
Dprinter.cc48 buffer_size_(0), in Printer()
59 buffer_size_(0), in Printer()
67 if (buffer_size_ > 0 && !failed_) { in ~Printer()
68 output_->BackUp(buffer_size_); in ~Printer()
324 while (size > buffer_size_) { in WriteRaw()
327 memcpy(buffer_, data, buffer_size_); in WriteRaw()
328 offset_ += buffer_size_; in WriteRaw()
329 data += buffer_size_; in WriteRaw()
330 size -= buffer_size_; in WriteRaw()
332 failed_ = !output_->Next(&void_buffer, &buffer_size_); in WriteRaw()
[all …]
Dtokenizer.cc192 buffer_size_(0), in Tokenizer()
215 if (buffer_size_ > buffer_pos_) { in ~Tokenizer()
216 input_->BackUp(buffer_size_ - buffer_pos_); in ~Tokenizer()
237 if (buffer_pos_ < buffer_size_) { in NextChar()
251 if (record_target_ != NULL && record_start_ < buffer_size_) { in Refresh()
252 record_target_->append(buffer_ + record_start_, buffer_size_ - record_start_); in Refresh()
260 if (!input_->Next(&data, &buffer_size_)) { in Refresh()
262 buffer_size_ = 0; in Refresh()
267 } while (buffer_size_ == 0); in Refresh()
Dzero_copy_stream_impl_lite.h268 const int buffer_size_; variable
357 const int buffer_size_; variable
Dcoded_stream.h808 int buffer_size_; variable
1063 if (buffer_size_ < size) { in GetDirectBufferForNBytesAndAdvance()
1134 if (buffer_size_ >= 5) { in WriteVarint32()
1190 return total_bytes_ - buffer_size_; in ByteCount()
1199 buffer_size_ -= amount; in Advance()
Dtokenizer.h267 int buffer_size_; // Size of buffer_. variable
Dprinter.h297 int buffer_size_; variable
/external/webrtc/webrtc/modules/audio_processing/vad/
Dvad_circular_buffer.cc22 buffer_size_(buffer_size), in VadCircularBuffer()
51 m = sum_ / buffer_size_; in Mean()
68 if (index_ >= buffer_size_) { in Insert()
75 return buffer_size_; in BufferLevel()
99 if (*index < 0 || *index >= buffer_size_) in ConvertToLinearIndex()
107 *index += buffer_size_; in ConvertToLinearIndex()
Dvad_circular_buffer.h64 int buffer_size_; variable
/external/webrtc/webrtc/test/gl/
Dgl_renderer.cc59 buffer_size_ = width * height * 4; // BGRA in ResizeVideo()
62 buffer_ = new uint8_t[buffer_size_]; in ResizeVideo()
64 memset(buffer_, 0, buffer_size_); in ResizeVideo()
Dgl_renderer.h44 size_t width_, height_, buffer_size_; variable
/external/webrtc/webrtc/modules/desktop_capture/
Ddiffer_unittest.cc38 buffer_size_ = width_ * height_ * bytes_per_pixel_; in InitDiffer()
42 prev_.reset(new uint8_t[buffer_size_]); in InitDiffer()
43 memset(prev_.get(), 0, buffer_size_); in InitDiffer()
45 curr_.reset(new uint8_t[buffer_size_]); in InitDiffer()
46 memset(curr_.get(), 0, buffer_size_); in InitDiffer()
50 memset(buffer, 0, buffer_size_); in ClearBuffer()
200 int buffer_size_; member in webrtc::DifferTest
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp8_test_helper.h44 size_t buffer_size() const { return buffer_size_; } in buffer_size()
64 size_t buffer_size_; variable
Drtp_format_vp8_test_helper.cc28 buffer_size_(0), in RtpFormatVp8TestHelper()
48 buffer_size_ = payload_size_ + 6; // Add space for payload descriptor. in Init()
50 buffer_ = new uint8_t[buffer_size_]; in Init()
/external/fmtlib/fmt/
Dformat.cc129 std::size_t buffer_size_; in safe_strerror() member in fmt::__anonf934f7110111::safe_strerror::StrError
143 if (message == buffer_ && strlen(buffer_) == buffer_size_ - 1) in safe_strerror()
151 return fallback(strerror_s(buffer_, buffer_size_, error_code_)); in safe_strerror()
157 return result == 0 && strlen(buffer_) == buffer_size_ - 1 ? in safe_strerror()
170 : error_code_(err_code), buffer_(buf), buffer_size_(buf_size) {} in safe_strerror()
175 return handle(strerror_r(error_code_, buffer_, buffer_size_)); in safe_strerror()
/external/webrtc/webrtc/sound/
Dalsasoundsystem.cc245 buffer_size_(0) { in AlsaInputStream()
293 if (size > buffer_size_) { in OnHaveWork()
296 buffer_size_ = size; in OnHaveWork()
333 size_t buffer_size_; member in rtc::AlsaInputStream
/external/protobuf/src/google/protobuf/
Dtext_format.cc1115 buffer_size_(0), in TextGenerator()
1126 if (!failed_ && buffer_size_ > 0) { in ~TextGenerator()
1127 output_->BackUp(buffer_size_); in ~TextGenerator()
1200 while (size > buffer_size_) { in Write()
1203 memcpy(buffer_, data, buffer_size_); in Write()
1204 data += buffer_size_; in Write()
1205 size -= buffer_size_; in Write()
1207 failed_ = !output_->Next(&void_buffer, &buffer_size_); in Write()
1215 buffer_size_ -= size; in Write()
1220 int buffer_size_; member in google::protobuf::TextFormat::Printer::TextGenerator
/external/webrtc/webrtc/base/
Dsocketadapters.cc44 : AsyncSocketAdapter(socket), buffer_size_(size), in BufferedReadAdapter()
46 buffer_ = new char[buffer_size_]; in BufferedReadAdapter()
110 if (data_len_ >= buffer_size_) { in OnReadEvent()
116 int len = socket_->Recv(buffer_ + data_len_, buffer_size_ - data_len_); in OnReadEvent()
/external/v8/src/arm64/
Ddisasm-arm64.h71 uint32_t buffer_size_; variable
Dassembler-arm64.cc571 DCHECK((pc_ >= buffer_) && (pc_ < buffer_ + buffer_size_)); in Reset()
578 reloc_info_writer.Reposition(reinterpret_cast<byte*>(buffer_ + buffer_size_), in Reset()
596 desc->buffer_size = buffer_size_; in GetCode()
599 static_cast<int>((reinterpret_cast<byte*>(buffer_) + buffer_size_) - in GetCode()
2897 if (buffer_size_ < 1 * MB) { in GrowBuffer()
2898 desc.buffer_size = 2 * buffer_size_; in GrowBuffer()
2900 desc.buffer_size = buffer_size_ + 1 * MB; in GrowBuffer()
2912 static_cast<int>((buffer + buffer_size_) - reloc_info_writer.pos()); in GrowBuffer()
2917 (buffer + buffer_size_); in GrowBuffer()
2925 buffer_size_ = desc.buffer_size; in GrowBuffer()
/external/v8/src/x87/
Dassembler-x87.cc220 memset(buffer_, 0xCC, buffer_size_); // int3 in Assembler()
224 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); in Assembler()
234 desc->buffer_size = buffer_size_; in GetCode()
236 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); in GetCode()
2051 desc.buffer_size = 2 * buffer_size_; in GrowBuffer()
2065 desc.reloc_size = (buffer_ + buffer_size_) - (reloc_info_writer.pos()); in GrowBuffer()
2075 int rc_delta = (desc.buffer + desc.buffer_size) - (buffer_ + buffer_size_); in GrowBuffer()
2082 buffer_size_ = desc.buffer_size; in GrowBuffer()
/external/vixl/src/aarch64/
Ddisasm-aarch64.h162 uint32_t buffer_size_; variable
/external/v8/src/ppc/
Dassembler-ppc.cc227 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); in Assembler()
251 desc->buffer_size = buffer_size_; in GetCode()
253 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); in GetCode()
2371 if (buffer_size_ < 4 * KB) { in GrowBuffer()
2373 } else if (buffer_size_ < 1 * MB) { in GrowBuffer()
2374 desc.buffer_size = 2 * buffer_size_; in GrowBuffer()
2376 desc.buffer_size = buffer_size_ + 1 * MB; in GrowBuffer()
2378 int space = buffer_space() + (desc.buffer_size - buffer_size_); in GrowBuffer()
2389 desc.reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); in GrowBuffer()
2394 (desc.buffer + desc.buffer_size) - (buffer_ + buffer_size_); in GrowBuffer()
[all …]
/external/v8/src/ia32/
Dassembler-ia32.cc305 memset(buffer_, 0xCC, buffer_size_); // int3 in Assembler()
309 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); in Assembler()
319 desc->buffer_size = buffer_size_; in GetCode()
321 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); in GetCode()
2911 desc.buffer_size = 2 * buffer_size_; in GrowBuffer()
2925 desc.reloc_size = (buffer_ + buffer_size_) - (reloc_info_writer.pos()); in GrowBuffer()
2935 int rc_delta = (desc.buffer + desc.buffer_size) - (buffer_ + buffer_size_); in GrowBuffer()
2943 buffer_size_ = desc.buffer_size; in GrowBuffer()

12