Home
last modified time | relevance | path

Searched refs:total_size_ (Results 1 – 19 of 19) sorted by relevance

/external/cronet/third_party/protobuf/src/google/protobuf/
Drepeated_ptr_field.cc53 if (total_size_ >= new_size) { in InternalExtend()
60 new_size = internal::CalculateReserveSize<void*, kRepHeaderSize>(total_size_, in InternalExtend()
73 const int old_total_size = total_size_; in InternalExtend()
74 total_size_ = new_size; in InternalExtend()
109 const size_t size = total_size_ * sizeof(elements[0]) + kRepHeaderSize; in DestroyProtos()
115 if (!rep_ || rep_->allocated_size == total_size_) { in AddOutOfLineHelper()
136 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
137 Reserve(total_size_ + 1); in AddWeak()
Drepeated_field.h330 return (total_size_ == 0) ? static_cast<Arena*>(arena_or_elements_) in GetOwningArena()
346 int total_size_; variable
367 GOOGLE_DCHECK_GT(total_size_, 0); in elements()
461 capacity_ = repeated_field_->total_size_; in FastAdderImpl()
470 capacity_ = repeated_field_->total_size_; in Add()
522 : current_size_(0), total_size_(0), arena_or_elements_(nullptr) {} in RepeatedField()
526 : current_size_(0), total_size_(0), arena_or_elements_(arena) {} in RepeatedField()
530 : current_size_(0), total_size_(0), arena_or_elements_(nullptr) { in RepeatedField()
541 : current_size_(0), total_size_(0), arena_or_elements_(nullptr) { in RepeatedField()
553 if (total_size_ > 0) { in ~RepeatedField()
[all …]
Drepeated_ptr_field.h169 : arena_(nullptr), current_size_(0), total_size_(0), rep_(nullptr) {}
171 : arena_(arena), current_size_(0), total_size_(0), rep_(nullptr) {}
186 int Capacity() const { return total_size_; }
229 if (!rep_ || rep_->allocated_size == total_size_) {
230 Reserve(total_size_ + 1);
254 const size_t size = total_size_ * sizeof(elements[0]) + kRepHeaderSize;
314 rhs->total_size_, rhs->rep_);
315 std::tie(rhs->arena_, rhs->current_size_, rhs->total_size_, rhs->rep_) =
316 std::make_tuple(arena_, current_size_, total_size_, rep_);
317 std::tie(arena_, current_size_, total_size_, rep_) = temp;
[all …]
/external/protobuf/src/google/protobuf/
Drepeated_ptr_field.cc53 if (total_size_ >= new_size) { in InternalExtend()
60 new_size = internal::CalculateReserveSize<void*, kRepHeaderSize>(total_size_, in InternalExtend()
73 const int old_total_size = total_size_; in InternalExtend()
74 total_size_ = new_size; in InternalExtend()
109 const size_t size = total_size_ * sizeof(elements[0]) + kRepHeaderSize; in DestroyProtos()
115 if (!rep_ || rep_->allocated_size == total_size_) { in AddOutOfLineHelper()
136 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
137 Reserve(total_size_ + 1); in AddWeak()
Drepeated_field.h330 return (total_size_ == 0) ? static_cast<Arena*>(arena_or_elements_) in GetOwningArena()
346 int total_size_; variable
367 GOOGLE_DCHECK_GT(total_size_, 0); in elements()
461 capacity_ = repeated_field_->total_size_; in FastAdderImpl()
470 capacity_ = repeated_field_->total_size_; in Add()
522 : current_size_(0), total_size_(0), arena_or_elements_(nullptr) {} in RepeatedField()
526 : current_size_(0), total_size_(0), arena_or_elements_(arena) {} in RepeatedField()
530 : current_size_(0), total_size_(0), arena_or_elements_(nullptr) { in RepeatedField()
541 : current_size_(0), total_size_(0), arena_or_elements_(nullptr) { in RepeatedField()
553 if (total_size_ > 0) { in ~RepeatedField()
[all …]
Drepeated_ptr_field.h169 : arena_(nullptr), current_size_(0), total_size_(0), rep_(nullptr) {}
171 : arena_(arena), current_size_(0), total_size_(0), rep_(nullptr) {}
186 int Capacity() const { return total_size_; }
229 if (!rep_ || rep_->allocated_size == total_size_) {
230 Reserve(total_size_ + 1);
254 const size_t size = total_size_ * sizeof(elements[0]) + kRepHeaderSize;
314 rhs->total_size_, rhs->rep_);
315 std::tie(rhs->arena_, rhs->current_size_, rhs->total_size_, rhs->rep_) =
316 std::make_tuple(arena_, current_size_, total_size_, rep_);
317 std::tie(arena_, current_size_, total_size_, rep_) = temp;
[all …]
/external/cronet/net/base/
Dupload_data_stream.cc94 DCHECK(is_chunked_ || is_eof_ == (current_position_ == total_size_)); in IsEOF()
117 total_size_ = 0; in Reset()
125 total_size_ = size; in SetSize()
152 if (!is_chunked_ && total_size_ == 0) in OnInitCompleted()
157 return NetLogInitEndInfoParams(result, total_size_, is_chunked_); in OnInitCompleted()
172 DCHECK_LE(current_position_, total_size_); in OnReadCompleted()
173 if (current_position_ == total_size_) in OnReadCompleted()
190 return UploadProgress(current_position_, total_size_); in GetUploadProgress()
Dupload_data_stream.h69 uint64_t size() const { return total_size_; } in size()
141 uint64_t total_size_ = 0; variable
/external/cronet/net/spdy/
Dspdy_read_queue.cc22 DCHECK_EQ(queue_.empty(), total_size_ == 0); in IsEmpty()
27 return total_size_; in GetTotalSize()
32 total_size_ += buffer->GetRemainingSize(); in Enqueue()
50 total_size_ -= bytes_copied; in Dequeue()
56 total_size_ = 0; in Clear()
Dspdy_read_queue.h49 size_t total_size_ = 0; variable
/external/cronet/net/server/
Dhttp_connection.cc110 if (total_size_ + static_cast<int>(data.size()) > max_buffer_size_) { in Append()
112 << total_size_ + data.size() in Append()
118 total_size_ += data.size(); in Append()
127 DCHECK_GE(total_size_, size); in DidConsume()
140 total_size_ -= size; in DidConsume()
145 DCHECK_EQ(0, total_size_); in GetSizeToWrite()
Dhttp_connection.h98 int total_size() const { return total_size_; } in total_size()
112 int total_size_ = 0; variable
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dproto_buffer_writer.h62 total_size_(total_size), in ProtoBufferWriter()
83 GPR_CODEGEN_ASSERT(byte_count_ < total_size_); in Next()
89 size_t remain = total_size_ - byte_count_; in Next()
155 const int total_size_; ///< byte size of proto being serialized variable
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/impl/codegen/
Dproto_buffer_writer.h62 total_size_(total_size), in ProtoBufferWriter()
83 GPR_CODEGEN_ASSERT(byte_count_ < total_size_); in Next()
89 size_t remain = static_cast<size_t>(total_size_ - byte_count_); in Next()
155 const int total_size_; ///< byte size of proto being serialized variable
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/impl/codegen/
Dproto_buffer_writer.h62 total_size_(total_size), in ProtoBufferWriter()
83 GPR_CODEGEN_ASSERT(byte_count_ < total_size_); in Next()
89 size_t remain = static_cast<size_t>(total_size_ - byte_count_); in Next()
155 const int total_size_; ///< byte size of proto being serialized variable
/external/cronet/third_party/brotli/enc/
Dringbuffer.h37 const uint32_t total_size_; member
63 *(uint32_t*)&rb->total_size_ = rb->size_ + rb->tail_size_; in RingBufferSetup()
120 if (rb->cur_size_ < rb->total_size_) { in RingBufferWrite()
122 RingBufferInitBuffer(m, rb->total_size_, rb); in RingBufferWrite()
144 BROTLI_MIN(size_t, n, rb->total_size_ - masked_pos)); in RingBufferWrite()
/external/brotli/c/enc/
Dringbuffer.h37 const uint32_t total_size_; member
63 *(uint32_t*)&rb->total_size_ = rb->size_ + rb->tail_size_; in RingBufferSetup()
120 if (rb->cur_size_ < rb->total_size_) { in RingBufferWrite()
122 RingBufferInitBuffer(m, rb->total_size_, rb); in RingBufferWrite()
144 BROTLI_MIN(size_t, n, rb->total_size_ - masked_pos)); in RingBufferWrite()
/external/tensorflow/tensorflow/lite/toco/
Dallocate_transient_arrays.cc105 Allocator() : total_size_(0) {} in Allocator()
135 total_size_ = std::max(total_size_, pos + size); in Allocate()
153 std::size_t total_size() const { return total_size_; } in total_size()
156 std::size_t total_size_; member in toco::__anond94bb5bc0111::Allocator
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorScanSycl.h64 …ScanParameters(index_t total_size_, index_t non_scan_size_, index_t scan_size_, index_t non_scan_s… in ScanParameters()
67 : total_size(total_size_), in ScanParameters()
371 …EIGEN_STRONG_INLINE ScanInfo(const Index &total_size_, const Index &scan_size_, const Index &panel… in ScanInfo()
374 : total_size(total_size_), in ScanInfo()