Home
last modified time | relevance | path

Searched refs:buffer_ (Results 1 – 25 of 154) sorted by relevance

1234567

/external/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc135 static uint8 buffer_[kBufferSize]; member in google::protobuf::io::__anonc137c6790111::CodedStreamTest
138 uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize]; member in google::protobuf::io::__anonc137c6790111::CodedStreamTest
186 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_2D()
187 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); in TEST_2D()
201 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_2D()
202 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); in TEST_2D()
247 buffer_[0] = '\0'; in TEST_1D()
248 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_1D()
249 ArrayInputStream input(buffer_, sizeof(buffer_)); in TEST_1D()
279 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_1D()
[all …]
Dcoded_stream.h474 const uint8* buffer_; variable
755 uint8* buffer_; variable
794 if (GOOGLE_PREDICT_TRUE(buffer_ < buffer_end_) && *buffer_ < 0x80) { in ReadVarint32()
795 *value = *buffer_; in ReadVarint32()
804 if (GOOGLE_PREDICT_TRUE(buffer_ < buffer_end_) && *buffer_ < 0x80) { in ReadVarint64()
805 *value = *buffer_; in ReadVarint64()
853 memcpy(value, buffer_, sizeof(*value)); in ReadLittleEndian32()
867 memcpy(value, buffer_, sizeof(*value)); in ReadLittleEndian64()
879 if (GOOGLE_PREDICT_TRUE(buffer_ < buffer_end_) && buffer_[0] < 0x80) { in ReadTag()
880 last_tag_ = buffer_[0]; in ReadTag()
[all …]
Dcoded_stream.cc97 buffer_end_ = buffer_; in BackUpInputToCurrentPosition()
205 buffer_ = NULL; in Skip()
206 buffer_end_ = buffer_; in Skip()
227 *data = buffer_; in GetDirectBufferPointer()
236 memcpy(buffer, buffer_, current_buffer_size); in ReadRaw()
243 memcpy(buffer, buffer_, size); in ReadRaw()
273 buffer->append(reinterpret_cast<const char*>(buffer_), in ReadStringFallback()
281 buffer->append(reinterpret_cast<const char*>(buffer_), size); in ReadStringFallback()
294 ptr = buffer_; in ReadLittleEndian32Fallback()
311 ptr = buffer_; in ReadLittleEndian64Fallback()
[all …]
Dzero_copy_stream_impl_lite.cc243 *data = buffer_.get() + buffer_used_ - backup_bytes_; in Next()
250 buffer_used_ = copying_stream_->Read(buffer_.get(), buffer_size_); in Next()
263 *data = buffer_.get(); in Next()
268 GOOGLE_CHECK(backup_bytes_ == 0 && buffer_.get() != NULL) in BackUp()
307 if (buffer_.get() == NULL) { in AllocateBufferIfNeeded()
308 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded()
315 buffer_.reset(); in FreeBuffer()
350 *data = buffer_.get() + buffer_used_; in Next()
379 if (copying_stream_->Write(buffer_.get(), buffer_used_)) { in WriteBuffer()
391 if (buffer_ == NULL) { in AllocateBufferIfNeeded()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp8_test_helper.cc22 buffer_(NULL), in RtpFormatVp8TestHelper()
35 delete [] buffer_; in ~RtpFormatVp8TestHelper()
50 buffer_ = new uint8_t[buffer_size_]; in Init()
79 EXPECT_TRUE(packetizer->NextPacket(buffer_, &send_bytes, &last)); in GetAllPacketsAndCheck()
130 EXPECT_BIT_EQ(buffer_[0], 6, 0); // Check reserved bit. in CheckHeader()
136 EXPECT_BIT_X_EQ(buffer_[0], 1); in CheckHeader()
142 EXPECT_BIT_X_EQ(buffer_[0], 0); in CheckHeader()
145 EXPECT_BIT_N_EQ(buffer_[0], hdr_info_->nonReference ? 1 : 0); in CheckHeader()
146 EXPECT_BIT_S_EQ(buffer_[0], frag_start ? 1 : 0); in CheckHeader()
152 EXPECT_EQ(buffer_[0] & 0x0F, buffer_[payload_start_]); in CheckHeader()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dpacket_buffer.cc50 DeleteAllPackets(&buffer_); in Flush()
54 return buffer_.empty(); in Empty()
68 if (buffer_.size() >= max_number_of_packets_) { in InsertPacket()
79 buffer_.rbegin(), buffer_.rend(), in InsertPacket()
85 if (rit != buffer_.rend() && in InsertPacket()
96 if (it != buffer_.end() && in InsertPacket()
100 it = buffer_.erase(it); in InsertPacket()
102 buffer_.insert(it, packet); // Insert the packet at that position. in InsertPacket()
154 *next_timestamp = buffer_.front()->header.timestamp; in NextTimestamp()
167 for (it = buffer_.begin(); it != buffer_.end(); ++it) { in NextHigherTimestamp()
[all …]
Ddtmf_buffer.cc33 buffer_.clear(); in Flush()
107 DtmfList::iterator it = buffer_.begin(); in InsertEvent()
108 while (it != buffer_.end()) { in InsertEvent()
115 buffer_.push_back(event); in InsertEvent()
117 buffer_.sort(CompareEvents); in InsertEvent()
122 DtmfList::iterator it = buffer_.begin(); in GetEvent()
123 while (it != buffer_.end()) { in GetEvent()
136 if (next != buffer_.end()) { in GetEvent()
159 buffer_.erase(it); in GetEvent()
175 it = buffer_.erase(it); in GetEvent()
[all …]
/external/v8/src/regexp/
Dregexp-macro-assembler-irregexp-inl.h19 DCHECK(pc_ <= buffer_.length()); in Emit()
20 if (pc_ + 3 >= buffer_.length()) { in Emit()
23 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; in Emit()
29 DCHECK(pc_ <= buffer_.length()); in Emit16()
30 if (pc_ + 1 >= buffer_.length()) { in Emit16()
33 *reinterpret_cast<uint16_t*>(buffer_.start() + pc_) = word; in Emit16()
39 DCHECK(pc_ <= buffer_.length()); in Emit8()
40 if (pc_ == buffer_.length()) { in Emit8()
43 *reinterpret_cast<unsigned char*>(buffer_.start() + pc_) = word; in Emit8()
49 DCHECK(pc_ <= buffer_.length()); in Emit32()
[all …]
/external/vixl/src/vixl/
Dcode-buffer.cc35 buffer_ = reinterpret_cast<byte*>(malloc(capacity_)); in CodeBuffer()
36 VIXL_CHECK(buffer_ != NULL); in CodeBuffer()
39 VIXL_ASSERT(IsWordAligned(buffer_)); in CodeBuffer()
41 cursor_ = buffer_; in CodeBuffer()
47 : buffer_(reinterpret_cast<byte*>(buffer)), in CodeBuffer()
52 VIXL_ASSERT(buffer_ != NULL); in CodeBuffer()
59 free(buffer_); in ~CodeBuffer()
90 memset(buffer_, 0, capacity_); in Reset()
93 cursor_ = buffer_; in Reset()
102 buffer_ = static_cast<byte*>(realloc(buffer_, new_capacity)); in Grow()
[all …]
Dcode-buffer.h44 ptrdiff_t cursor_offset = cursor_ - buffer_; in OffsetFrom()
55 VIXL_ASSERT((offset >= 0) && (offset <= (cursor_ - buffer_))); in GetOffsetAddress()
56 return reinterpret_cast<T>(buffer_ + offset); in GetOffsetAddress()
60 VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_))); in RemainingBytes()
61 return (buffer_ + capacity_) - cursor_; in RemainingBytes()
97 byte* buffer_; variable
/external/libchrome/sandbox/win/src/
Dinternal_types.h33 CountedBuffer(void* buffer, uint32_t size) : size_(size), buffer_(buffer) {} in CountedBuffer()
38 return buffer_; in Buffer()
43 void* buffer_; variable
51 buffer_.vp = buffer; in IPCInt()
55 buffer_.vp = NULL; in IPCInt()
56 buffer_.i32 = i32; in IPCInt()
60 return buffer_.i32; in As32Bit()
64 return buffer_.vp; in AsVoidPtr()
71 } buffer_; variable
/external/webrtc/webrtc/test/gl/
Dgl_renderer.cc21 : is_init_(false), buffer_(NULL), width_(0), height_(0) {} in GlRenderer()
37 delete[] buffer_; in Destroy()
38 buffer_ = NULL; in Destroy()
61 delete[] buffer_; in ResizeVideo()
62 buffer_ = new uint8_t[buffer_size_]; in ResizeVideo()
63 assert(buffer_ != NULL); in ResizeVideo()
64 memset(buffer_, 0, buffer_size_); in ResizeVideo()
69 GL_UNSIGNED_INT_8_8_8_8, static_cast<GLvoid*>(buffer_)); in ResizeVideo()
81 webrtc::ConvertFromI420(frame, kBGRA, 0, buffer_); in RenderFrame()
86 GL_UNSIGNED_INT_8_8_8_8, buffer_); in RenderFrame()
/external/webrtc/webrtc/base/
Dtransformadapter.cc44 if ((state_ == ST_PROCESSING) && (len_ < sizeof(buffer_))) { in Read()
47 buffer_ + len_, in Read()
48 sizeof(buffer_) - len_, in Read()
66 StreamResult result = transform_->Transform(buffer_, &in_len, in Read()
86 memmove(buffer_, buffer_ + in_len, len_); in Read()
112 if (len_ < sizeof(buffer_)) { in Write()
115 size_t out_len = sizeof(buffer_) - len_; in Write()
117 buffer_ + len_, &out_len, in Write()
138 StreamResult result = StreamAdapterInterface::Write(buffer_ + pos, in Write()
158 memmove(buffer_, buffer_ + pos, len_); in Write()
Dhttpbase.cc427 len_ = data_->formatLeader(buffer_, sizeof(buffer_)); in send()
428 len_ += strcpyn(buffer_ + len_, sizeof(buffer_) - len_, "\r\n"); in send()
515 if (len_ < sizeof(buffer_)) { in DoReceiveLoop()
519 StreamResult read_result = http_stream_->Read(buffer_ + len_, in DoReceiveLoop()
520 sizeof(buffer_) - len_, in DoReceiveLoop()
524 ASSERT(len_ + read <= sizeof(buffer_)); in DoReceiveLoop()
557 ProcessResult process_result = Process(buffer_, len_, &processed, in DoReceiveLoop()
561 memmove(buffer_, buffer_ + processed, len_); in DoReceiveLoop()
594 bool send_required = (len_ >= sizeof(buffer_)); in flush_data()
597 ASSERT(len_ <= sizeof(buffer_)); in flush_data()
[all …]
/external/bsdiff/
Dmemory_file.cc13 buffer_.reserve(size); in MemoryFile()
26 buffer_.insert(buffer_.end(), data, data + count); in Write()
36 if (!WriteAll(file_, buffer_.data(), buffer_.size())) in Close()
40 buffer_.clear(); in Close()
45 *size = buffer_.size(); in GetSize()
/external/google-breakpad/src/common/mac/
Dmacho_reader.cc83 buffer_.start = buffer; in Read()
84 buffer_.end = buffer + size; in Read()
85 ByteCursor cursor(&buffer_); in Read()
117 size_t fat_size = buffer_.Size(); in Read()
142 object_files_[0].size = static_cast<uint32_t>(buffer_.Size()); in Read()
228 assert(!buffer_.start); in Read()
229 buffer_.start = buffer; in Read()
230 buffer_.end = buffer + size; in Read()
231 ByteCursor cursor(&buffer_, true); in Read()
355 if (file_offset > buffer_.Size() || in WalkLoadCommands()
[all …]
/external/drm_hwcomposer/
Ddrmframebuffer.h38 return buffer_ != NULL; in is_valid()
42 return buffer_; in buffer()
57 if (buffer_->getWidth() == w && buffer_->getHeight() == h) in Allocate()
68 buffer_ = new GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888, in Allocate()
84 buffer_.clear(); in Clear()
102 sp<GraphicBuffer> buffer_;
/external/v8/src/parsing/
Dscanner-character-streams.cc55 buffer_cursor_ = buffer_; in BufferedUtf16CharacterStream()
56 buffer_end_ = buffer_; in BufferedUtf16CharacterStream()
67 if (pushback_limit_ == NULL && buffer_cursor_ > buffer_) { in PushBack()
69 buffer_[--buffer_cursor_ - buffer_] = static_cast<uc16>(character); in PushBack()
87 buffer_end_ = buffer_ + kBufferSize; in SlowPushBack()
91 DCHECK(buffer_cursor_ > buffer_); in SlowPushBack()
93 buffer_[--buffer_cursor_ - buffer_] = character; in SlowPushBack()
94 if (buffer_cursor_ == buffer_) { in SlowPushBack()
104 buffer_cursor_ = buffer_; in ReadBlock()
115 buffer_end_ = buffer_ + length; in ReadBlock()
[all …]
/external/webrtc/webrtc/modules/audio_processing/vad/
Dvad_circular_buffer.cc19 : buffer_(new double[buffer_size]), in VadCircularBuffer()
43 return buffer_[0]; in Oldest()
45 return buffer_[index_]; in Oldest()
63 sum_ -= buffer_[index_]; in Insert()
66 buffer_[index_] = value; in Insert()
83 *value = buffer_[index]; in Get()
92 sum_ -= buffer_[index]; in Set()
93 buffer_[index] = value; in Set()
/external/v8/src/wasm/
Dencoder.h27 : zone_(zone), buffer_(reinterpret_cast<byte*>(zone->New(initial))) { in zone_()
28 pos_ = buffer_; in zone_()
29 end_ = buffer_ + initial; in zone_()
87 byte* ptr = buffer_ + offset; in patch_u32v()
100 size_t offset() { return static_cast<size_t>(pos_ - buffer_); } in offset()
101 size_t size() { return static_cast<size_t>(pos_ - buffer_); } in size()
102 const byte* begin() { return buffer_; } in begin()
107 size_t new_size = 4096 + (end_ - buffer_) * 3; in EnsureSpace()
109 memcpy(new_buffer, buffer_, (pos_ - buffer_)); in EnsureSpace()
110 pos_ = new_buffer + (pos_ - buffer_); in EnsureSpace()
[all …]
/external/webrtc/webrtc/common_video/
Di420_buffer_pool.cc22 : buffer_(buffer) {} in PooledI420Buffer()
27 int width() const override { return buffer_->width(); } in width()
28 int height() const override { return buffer_->height(); } in height()
30 return buffer_->data(type); in data()
36 return const_cast<uint8_t*>(buffer_->data(type)); in MutableData()
39 return buffer_->stride(type); in stride()
49 rtc::scoped_refptr<webrtc::I420Buffer> buffer_; member in __anonc6cafcd10111::PooledI420Buffer
/external/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc31 : buffer_(NULL), in MemoryInputStream()
57 if (!buffer_) { in Read()
69 byte_t value = buffer_[position_++]; in Read()
79 if (!buffer_) { in Read()
95 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
105 if (!buffer_) { in Skip()
129 if (!buffer_) { in Unread()
144 buffer_ = buffer; in Attach()
/external/webrtc/webrtc/libjingle/xmpp/
Dxmppsocket.cc84 while (buffer_.Length() != 0) { in OnWriteEvent()
85 int written = cricket_socket_->Send(buffer_.Data(), buffer_.Length()); in OnWriteEvent()
87 buffer_.Consume(written); in OnWriteEvent()
134 while (buffer_.Length() != 0) { in OnEvent()
138 result = stream_->Write(buffer_.Data(), buffer_.Length(), in OnEvent()
148 buffer_.Shift(written); in OnEvent()
194 buffer_.WriteBytes(data, len); in Write()
/external/v8/src/
Dstring-stream.cc23 return buffer_; in allocate()
29 return buffer_; in grow()
44 buffer_ = new_buffer; in Put()
49 buffer_[length_ - 4] = '.'; in Put()
50 buffer_[length_ - 3] = '.'; in Put()
51 buffer_[length_ - 2] = '.'; in Put()
52 buffer_[length_ - 1] = '\n'; in Put()
53 buffer_[length_] = '\0'; in Put()
57 buffer_[length_] = c; in Put()
58 buffer_[length_ + 1] = '\0'; in Put()
[all …]
Dutils.cc19 buffer_ = Vector<char>::New(size); in SimpleStringBuilder()
30 DCHECK(!is_finalized() && position_ + n <= buffer_.length()); in AddSubstring()
32 MemCopy(&buffer_[position_], s, n * kCharSize); in AddSubstring()
56 buffer_[position_ - i] = '0' + static_cast<char>(number % 10); in AddDecimalInteger()
63 DCHECK(!is_finalized() && position_ <= buffer_.length()); in Finalize()
65 if (position_ == buffer_.length()) { in Finalize()
68 for (int i = 3; i > 0 && position_ > i; --i) buffer_[position_ - i] = '.'; in Finalize()
70 buffer_[position_] = '\0'; in Finalize()
73 DCHECK(strlen(buffer_.start()) == static_cast<size_t>(position_)); in Finalize()
76 return buffer_.start(); in Finalize()
[all …]

1234567