/third_party/protobuf/src/google/protobuf/io/ |
D | coded_stream_unittest.cc | 136 static uint8 buffer_[kBufferSize]; member in google::protobuf::io::__anon1b6c73a90111::CodedStreamTest 139 uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize]; member in google::protobuf::io::__anon1b6c73a90111::CodedStreamTest 192 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_2D() 193 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); in TEST_2D() 207 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_2D() 208 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); in TEST_2D() 252 buffer_[0] = '\0'; in TEST_1D() 253 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_1D() 254 ArrayInputStream input(buffer_, sizeof(buffer_)); in TEST_1D() 284 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_1D() [all …]
|
D | coded_stream.cc | 99 buffer_end_ = buffer_; in BackUpInputToCurrentPosition() 210 buffer_ = NULL; in SkipFallback() 211 buffer_end_ = buffer_; in SkipFallback() 236 *data = buffer_; in GetDirectBufferPointer() 245 memcpy(buffer, buffer_, current_buffer_size); in ReadRaw() 252 memcpy(buffer, buffer_, size); in ReadRaw() 268 memcpy(z.first, buffer_, size); in ReadString() 296 buffer->append(reinterpret_cast<const char*>(buffer_), in ReadStringFallback() 304 buffer->append(reinterpret_cast<const char*>(buffer_), size); in ReadStringFallback() 317 ptr = buffer_; in ReadLittleEndian32Fallback() [all …]
|
D | coded_stream.h | 538 const uint8* buffer_; variable 659 : end_(buffer_), in EpsCopyOutputStream() 662 *pp = buffer_; in EpsCopyOutputStream() 827 uint8* buffer_end_ = buffer_; 828 uint8 buffer_[2 * kSlopBytes]; variable 845 end_ = buffer_ + kSlopBytes; in Error() 846 return buffer_; in Error() 952 end_ = buffer_ + size; in SetInitialBuffer() 954 return buffer_; in SetInitialBuffer() 1272 if (PROTOBUF_PREDICT_TRUE(buffer_ < buffer_end_)) { in ReadVarint32() [all …]
|
D | zero_copy_stream_impl_lite.cc | 227 *data = buffer_.get() + buffer_used_ - backup_bytes_; in Next() 234 buffer_used_ = copying_stream_->Read(buffer_.get(), buffer_size_); in Next() 247 *data = buffer_.get(); in Next() 252 GOOGLE_CHECK(backup_bytes_ == 0 && buffer_.get() != NULL) in BackUp() 290 if (buffer_.get() == NULL) { in AllocateBufferIfNeeded() 291 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded() 298 buffer_.reset(); in FreeBuffer() 328 *data = buffer_.get() + buffer_used_; in Next() 357 if (copying_stream_->Write(buffer_.get(), buffer_used_)) { in WriteBuffer() 369 if (buffer_ == NULL) { in AllocateBufferIfNeeded() [all …]
|
/third_party/gn/src/base/containers/ |
D | circular_deque.h | 148 return parent_deque_->buffer_[index_]; 153 return &parent_deque_->buffer_[index_]; 251 return parent_deque_->buffer_.capacity() - parent_deque_->begin_ + index_; in OffsetFromBegin() 259 if (index_ == parent_deque_->buffer_.capacity()) in Increment() 266 index_ = parent_deque_->buffer_.capacity() - 1; in Decrement() 289 parent_deque_->buffer_.capacity(); in Add() 432 circular_deque(const circular_deque& other) : buffer_(other.size() + 1) { in circular_deque() 436 : buffer_(std::move(other.buffer_)), in circular_deque() 467 buffer_ = std::move(other.buffer_); 517 size_t right_size = buffer_.capacity() - begin_; in at() [all …]
|
D | vector_buffer.h | 47 : buffer_(reinterpret_cast<T*>(malloc(sizeof(T) * count))), in VectorBuffer() 51 : buffer_(other.buffer_), capacity_(other.capacity_) { in VectorBuffer() 52 other.buffer_ = nullptr; in VectorBuffer() 56 ~VectorBuffer() { free(buffer_); } in ~VectorBuffer() 59 free(buffer_); 60 buffer_ = other.buffer_; 63 other.buffer_ = nullptr; 70 T& operator[](size_t i) { return buffer_[i]; } 71 const T& operator[](size_t i) const { return buffer_[i]; } 72 T* begin() { return buffer_; } in begin() [all …]
|
/third_party/protobuf/js/binary/ |
D | encoder.js | 55 this.buffer_ = []; property in jspb.BinaryEncoder 63 return this.buffer_.length; 71 var buffer = this.buffer_; 72 this.buffer_ = []; property 94 this.buffer_.push((lowBits & 0x7f) | 0x80); 98 this.buffer_.push(lowBits); 131 this.buffer_.push((value & 0x7f) | 0x80); 135 this.buffer_.push(value); 157 this.buffer_.push((value & 0x7f) | 0x80); 163 this.buffer_.push(1); [all …]
|
/third_party/node/deps/brotli/c/enc/ |
D | ringbuffer.h | 46 uint8_t* buffer_; member 53 rb->buffer_ = 0; in RingBufferInit() 86 rb->buffer_ = rb->data_ + 2; in RingBufferInitBuffer() 87 rb->buffer_[-2] = rb->buffer_[-1] = 0; in RingBufferInitBuffer() 89 rb->buffer_[rb->cur_size_ + i] = 0; in RingBufferInitBuffer() 99 memcpy(&rb->buffer_[p], bytes, in RingBufferWriteTail() 117 memcpy(rb->buffer_, bytes, n); in RingBufferWrite() 126 rb->buffer_[rb->size_ - 2] = 0; in RingBufferWrite() 127 rb->buffer_[rb->size_ - 1] = 0; in RingBufferWrite() 130 rb->buffer_[rb->size_] = 241; in RingBufferWrite() [all …]
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | ringbuffer.h | 46 uint8_t* buffer_; member 53 rb->buffer_ = 0; in RingBufferInit() 86 rb->buffer_ = rb->data_ + 2; in RingBufferInitBuffer() 87 rb->buffer_[-2] = rb->buffer_[-1] = 0; in RingBufferInitBuffer() 89 rb->buffer_[rb->cur_size_ + i] = 0; in RingBufferInitBuffer() 99 memcpy(&rb->buffer_[p], bytes, in RingBufferWriteTail() 117 memcpy(rb->buffer_, bytes, n); in RingBufferWrite() 126 rb->buffer_[rb->size_ - 2] = 0; in RingBufferWrite() 127 rb->buffer_[rb->size_ - 1] = 0; in RingBufferWrite() 130 rb->buffer_[rb->size_] = 241; in RingBufferWrite() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/qt/ |
D | gstqsgtexture.cc | 51 this->buffer_ = NULL; in GstQSGTexture() 60 gst_buffer_replace (&this->buffer_, NULL); in ~GstQSGTexture() 84 if (!gst_buffer_replace (&this->buffer_, buffer)) in setBuffer() 100 if (this->buffer_) in getBuffer() 101 buffer = gst_buffer_ref (this->buffer_); in getBuffer() 123 if (!this->buffer_) in bind() 128 this->mem_ = gst_buffer_peek_memory (this->buffer_, 0); in bind() 135 if (!gst_video_frame_map (&this->v_frame, &this->v_info, this->buffer_, in bind() 141 mem = gst_buffer_peek_memory (this->buffer_, 0); in bind() 208 if (this->buffer_) { in textureId() [all …]
|
/third_party/node/src/ |
D | aliased_buffer.h | 45 buffer_ = static_cast<NativeT*>(ab->GetBackingStore()->Data()); in AliasedBufferBase() 77 buffer_ = reinterpret_cast<NativeT*>( in AliasedBufferBase() 88 buffer_(that.buffer_) { in AliasedBufferBase() 97 buffer_ = that.buffer_; 101 that.buffer_ = nullptr; 174 return buffer_; in GetNativeBuffer() 189 buffer_[index] = value; in SetValue() 197 return buffer_[index]; in GetValue() 234 memcpy(new_buffer, buffer_, old_size_in_bytes); in reserve() 242 buffer_ = new_buffer; in reserve() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | double-conversion-utils.h | 238 : buffer_(buffer, buffer_size), position_(0) { } in StringBuilder() 242 int size() const { return buffer_.length(); } in size() 258 ASSERT(!is_finalized() && position_ < buffer_.length()); in AddCharacter() 259 buffer_[position_++] = c; in AddCharacter() 271 ASSERT(!is_finalized() && position_ + n < buffer_.length()); in AddSubstring() 273 memmove(&buffer_[position_], s, n * kCharSize); in AddSubstring() 288 ASSERT(!is_finalized() && position_ < buffer_.length()); in Finalize() 289 buffer_[position_] = '\0'; in Finalize() 292 ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_)); in Finalize() 295 return buffer_.start(); in Finalize() [all …]
|
/third_party/flutter/engine/flutter/fml/ |
D | message.cc | 36 return buffer_; in GetBuffer() 59 if (buffer_ == nullptr) { in Resize() 67 buffer_ = static_cast<uint8_t*>(buffer); in Resize() 76 void* resized = ::realloc(buffer_, size); in Resize() 82 buffer_ = static_cast<uint8_t*>(resized); in Resize() 96 return buffer_ + old_length; in PrepareEncode() 103 auto* buffer = buffer_ + size_read_; in PrepareDecode()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | memory_input_stream.cc | 31 : buffer_(NULL), in MemoryInputStream() 61 if (!buffer_) { in Read() 73 uint8_t value = buffer_[position_++]; in Read() 83 if (!buffer_) { in Read() 99 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read() 109 if (!buffer_) { in Skip() 133 if (!buffer_) { in Unread() 148 buffer_ = buffer; in Attach()
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | memory_input_stream.cc | 31 : buffer_(NULL), in MemoryInputStream() 61 if (!buffer_) { in Read() 73 uint8_t value = buffer_[position_++]; in Read() 83 if (!buffer_) { in Read() 99 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read() 109 if (!buffer_) { in Skip() 133 if (!buffer_) { in Unread() 148 buffer_ = buffer; in Attach()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | double-conversion-utils.h | 269 : buffer_(buffer, buffer_size), position_(0) { } in StringBuilder() 273 int size() const { return buffer_.length(); } in size() 289 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in AddCharacter() 290 buffer_[position_++] = c; in AddCharacter() 302 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ + n < buffer_.length()); in AddSubstring() 304 memmove(&buffer_[position_], s, n); in AddSubstring() 319 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in Finalize() 320 buffer_[position_] = '\0'; in Finalize() 323 DOUBLE_CONVERSION_ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_)); in Finalize() 326 return buffer_.start(); in Finalize() [all …]
|
/third_party/icu/vendor/double-conversion/upstream/double-conversion/ |
D | utils.h | 255 : buffer_(buffer, buffer_size), position_(0) { } in StringBuilder() 259 int size() const { return buffer_.length(); } in size() 275 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in AddCharacter() 276 buffer_[position_++] = c; in AddCharacter() 288 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ + n < buffer_.length()); in AddSubstring() 290 memmove(&buffer_[position_], s, n); in AddSubstring() 305 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in Finalize() 306 buffer_[position_] = '\0'; in Finalize() 309 DOUBLE_CONVERSION_ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_)); in Finalize() 312 return buffer_.start(); in Finalize() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | double-conversion-utils.h | 268 : buffer_(buffer, buffer_size), position_(0) { } in StringBuilder() 272 int size() const { return buffer_.length(); } in size() 288 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in AddCharacter() 289 buffer_[position_++] = c; in AddCharacter() 301 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ + n < buffer_.length()); in AddSubstring() 303 memmove(&buffer_[position_], s, n); in AddSubstring() 318 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in Finalize() 319 buffer_[position_] = '\0'; in Finalize() 322 DOUBLE_CONVERSION_ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_)); in Finalize() 325 return buffer_.start(); in Finalize() [all …]
|
D | collationkeys.h | 35 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 47 buffer_[appended_] = (char)b; in Append() 69 UBool IsOk() const { return buffer_ != NULL; } in IsOk() 76 buffer_ = NULL; in SetNotOk() 80 char *buffer_; variable
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | double-conversion-utils.h | 268 : buffer_(buffer, buffer_size), position_(0) { } in StringBuilder() 272 int size() const { return buffer_.length(); } in size() 288 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in AddCharacter() 289 buffer_[position_++] = c; in AddCharacter() 301 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ + n < buffer_.length()); in AddSubstring() 303 memmove(&buffer_[position_], s, n); in AddSubstring() 318 DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ < buffer_.length()); in Finalize() 319 buffer_[position_] = '\0'; in Finalize() 322 DOUBLE_CONVERSION_ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_)); in Finalize() 325 return buffer_.start(); in Finalize() [all …]
|
D | collationkeys.h | 35 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 47 buffer_[appended_] = (char)b; in Append() 69 UBool IsOk() const { return buffer_ != NULL; } in IsOk() 76 buffer_ = NULL; in SetNotOk() 80 char *buffer_; variable
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/ |
D | bit_stream.cpp | 293 buffer_.reserve(NumBitsToNumWords<64>(reserve_bits)); in BitWriterWord64() 312 buffer_.push_back(bits); in WriteBits() 316 buffer_.back() |= first_word; in WriteBits() 324 buffer_.push_back(second_word); in WriteBits() 330 assert(buffer_.size() * 64 >= end_); in WriteBits() 383 : buffer_(std::move(buffer)), pos_(0) {} in BitReaderWord64() 386 : buffer_(ToBuffer64(buffer)), pos_(0) {} in BitReaderWord64() 389 : buffer_(ToBuffer64(buffer, num_bytes)), pos_(0) {} in BitReaderWord64() 408 *bits = buffer_[index] >> offset; in ReadBits() 413 if (pos_ >= buffer_.size() * 64) { in ReadBits() [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | parse_context.cc | 104 if (next_chunk_ != buffer_) { in Next() 109 next_chunk_ = buffer_; in Next() 116 std::memmove(buffer_, buffer_end_, kSlopBytes); in Next() 118 (d < 0 || !ParseEndsInSlopRegion(buffer_, overrun, d))) { in Next() 125 std::memcpy(buffer_ + kSlopBytes, data, kSlopBytes); in Next() 127 buffer_end_ = buffer_ + kSlopBytes; in Next() 129 return buffer_; in Next() 131 std::memcpy(buffer_ + kSlopBytes, data, size_); in Next() 132 next_chunk_ = buffer_; in Next() 133 buffer_end_ = buffer_ + size_; in Next() [all …]
|
/third_party/googletest/googletest/include/gtest/ |
D | gtest-matchers.h | 302 : vtable_(other.vtable_), buffer_(other.buffer_) { in MatcherBase() 303 if (IsShared()) buffer_.shared->Ref(); in MatcherBase() 310 buffer_ = other.buffer_; 311 if (IsShared()) buffer_.shared->Ref(); 316 : vtable_(other.vtable_), buffer_(other.buffer_) { in MatcherBase() 324 buffer_ = other.buffer_; 406 if (IsShared() && buffer_.shared->Unref()) { in Destroy() 407 vtable_->shared_destroy(buffer_.shared); in Destroy() 424 static_cast<const void*>(&m.buffer_)); in Get() 428 ::new (static_cast<void*>(&m.buffer_)) M(impl); in Init() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
D | GPUBuffer.cpp | 34 : buffer_(std::move(buffer)), in GPUBuffer() 76 buffer_.MapAsync( in mapAsync() 129 ? buffer_.GetMappedRange(offset, s) in getMappedRange() 130 : const_cast<void*>(buffer_.GetConstMappedRange(offset, s)); in getMappedRange() 152 buffer_.Unmap(); in unmap() 157 buffer_.Destroy(); in destroy()
|