Home
last modified time | relevance | path

Searched refs:size_ (Results 1 - 25 of 537) sorted by relevance

12345678910>>...22

/foundation/CastEngine/castengine_wifi_display/services/utils/
H A Ddata_buffer.cpp29 size_ = 0; in DataBuffer()
34 if (other.data_ && other.size_) {
35 capacity_ = other.size_;
37 memcpy_s(data_, capacity_ + 1, other.data_, other.size_);
38 size_ = other.size_;
45 if (other.data_ && other.size_) {
46 capacity_ = other.size_;
49 memcpy_s(data_, capacity_ + 1, other.data_, other.size_);
50 size_
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dvector.h48 size_ = value.size_; in Vector()
50 for (uint16_t i = 0; i < value.size_; i++) { in Vector()
68 return array_[size_ - 1]; // undefined operation while vector is empty in Back()
73 if (size_ == capacity_) { in PushBack()
76 for (uint16_t i = 0; i < size_; i++) { in PushBack()
82 array_[size_++] = data; in PushBack()
90 --size_; in PopBack()
95 size_ = 0; in Clear()
105 return (array_ + size_); in End()
178 uint16_t size_ = 0; global() member in OHOS::Graphic::Vector
[all...]
H A Dlist.h76 List() : size_(0) in List()
134 size_++; in PushBack()
157 size_++; in PushFront()
178 if (size_ > 0) { in PopBack()
179 size_--; in PopBack()
201 if (size_ > 0) { in PopFront()
202 size_--; in PopFront()
229 size_++; in Insert()
254 if (size_ > 0) { in Remove()
255 size_ in Remove()
373 uint16_t size_; global() member in OHOS::List
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
H A Dgeometry_plaindata_array.h48 GeometryArrayAllocator<T>::Deallocate(data_, size_); in ~GeometryPlainDataArray()
51 GeometryPlainDataArray() : data_(0), size_(0) {} in GeometryPlainDataArray()
60 : data_(GeometryArrayAllocator<T>::Allocate(size)), size_(size) {} in GeometryPlainDataArray()
63 : data_(GeometryArrayAllocator<T>::Allocate(podArray.size_)), size_(podArray.size_) in GeometryPlainDataArray()
65 if (memcpy_s(data_, sizeof(T) * size_, podArray.data_, sizeof(T) * size_) != EOK) { in GeometryPlainDataArray()
73 if (memcpy_s(data_, sizeof(T) * size_, podArray.data_, sizeof(T) * size_) ! in operator =()
180 uint32_t size_; global() member in OHOS::GeometryPlainDataArray
[all...]
/third_party/spirv-tools/source/util/
H A Dsmall_vector.h50 : size_(0), in SmallVector()
62 size_ = vec.size(); in SmallVector()
63 for (uint32_t i = 0; i < size_; i++) { in SmallVector()
78 size_ = vec.size(); in SmallVector()
79 for (uint32_t i = 0; i < size_; i++) { in SmallVector()
89 new (small_data_ + (size_++)) T(std::move(*it)); in SmallVector()
99 for (T* p = small_data_; p < small_data_ + size_; ++p) { in ~SmallVector()
116 for (; i < size_ && i < that.size_; ++i) { in operator =()
120 if (i >= that.size_) { in operator =()
464 size_t size_; global() member in spvtools::utils::SmallVector
[all...]
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dvector.h157 if ((size_ == 0) && (capacity_ == 0) && (data_ == 0)) { in setAllocator()
198 size_ = other.size_; in vector()
207 size_ = other.size_; in vector()
212 : size_(other.size_), capacity_(other.capacity_), data_(other.data_), allocator_(other.allocator_) in allocator_()
218 other.size_ = 0; in allocator_()
230 size_ = size; in vector()
238 size_ in vector()
428 finalize(setup_storage(count), size_); reserve() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/util/
H A Dsmall_vector.h48 : size_(0), in SmallVector()
60 size_ = vec.size(); in SmallVector()
61 for (uint32_t i = 0; i < size_; i++) { in SmallVector()
71 size_ = vec.size(); in SmallVector()
72 for (uint32_t i = 0; i < size_; i++) { in SmallVector()
82 new (small_data_ + (size_++)) T(std::move(*it)); in SmallVector()
92 for (T* p = small_data_; p < small_data_ + size_; ++p) { in ~SmallVector()
109 for (; i < size_ && i < that.size_; ++i) { in operator =()
113 if (i >= that.size_) { in operator =()
445 size_t size_; global() member in spvtools::utils::SmallVector
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
H A Dsmall_vector.h48 : size_(0), in SmallVector()
60 size_ = vec.size(); in SmallVector()
61 for (uint32_t i = 0; i < size_; i++) { in SmallVector()
71 size_ = vec.size(); in SmallVector()
72 for (uint32_t i = 0; i < size_; i++) { in SmallVector()
82 new (small_data_ + (size_++)) T(std::move(*it)); in SmallVector()
92 for (T* p = small_data_; p < small_data_ + size_; ++p) { in ~SmallVector()
109 for (; i < size_ && i < that.size_; ++i) { in operator =()
113 if (i >= that.size_) { in operator =()
445 size_t size_; global() member in spvtools::utils::SmallVector
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/
H A Da2dp_shared_buffer.cpp25 size_ = 0; in A2dpSharedBuffer()
40 LOG_INFO("[A2dpSharedBuffer] %{public}s: start size_ [%{public}u] len[%{public}u] cap_ [%{public}u] \n", in Read()
41 __func__, size_, len, cap_); in Read()
42 if (size_ < len) { in Read()
49 size_ -= len; in Read()
50 if (memcpy_s(shiftBuf_, cap_, buf_ + len, size_) != EOK) { in Read()
53 if (memcpy_s(buf_, cap_, shiftBuf_, size_) != EOK) { in Read()
56 LOG_INFO("[A2dpSharedBuffer] %{public}s: end size_ [%{public}u] len[%{public}u] cap_[%{public}u]\n", in Read()
57 __func__, size_, len, cap_); in Read()
68 LOG_INFO("[A2dpSharedBuffer] %{public}s: start size_ [ in Write()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dmem_allocator.cpp29 MemAllocator::MemAllocator() : isReadOnly_(false), capacity_(0), size_(0), startPtr_(nullptr) {} in MemAllocator()
46 size_ = size; in BuildFromData()
72 size_ = 0; in Clear()
82 size_ = 0; in ClearData()
87 if (isReadOnly_ || size == 0 || size > MEM_SIZE_MAX || size < size_) { in Resize()
99 if (!memcpy_s(newData, size, startPtr_, size_)) { in Resize()
116 auto current = startPtr_ + size_; in Add()
118 size_ += ALIGN_SIZE - mod; in Add()
121 if (capacity_ == 0 || capacity_ < size_ + size) { in Add()
127 if (!memcpy_s(startPtr_ + size_, capacity in Add()
[all...]
/third_party/node/deps/v8/src/codegen/
H A Daligned-slot-allocator.cc71 size_ = std::max(size_, result + n); in Allocate()
81 // Reserve |n| slots at |size_|, invalidate fragments below the new |size_|, in AllocateUnaligned()
82 // and add any new fragments beyond the new |size_|. in AllocateUnaligned()
83 int result = size_; in AllocateUnaligned()
84 size_ += n; in AllocateUnaligned()
85 switch (size_ & 3) { in AllocateUnaligned()
88 next4_ = size_; in AllocateUnaligned()
92 next1_ = size_; in AllocateUnaligned()
[all...]
/third_party/node/deps/v8/src/utils/
H A Ddetachable-vector.h25 size_ = 0; in detach()
28 void pop_back() { --size_; } in pop_back()
30 size_t size() const { return size_; } in size()
31 bool empty() const { return size_ == 0; } in empty()
41 size_t size_ = 0; member in v8::internal::DetachableVectorBase
56 if (size_ == capacity_) { in push_back()
61 data()[size_] = value; in push_back()
62 ++size_; in push_back()
70 size_ = 0; in free()
74 DCHECK_LT(i, size_); in at()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dcharconv_bigint.h62 BigUnsigned() : size_(0), words_{} {} in BigUnsigned()
64 : size_((v >> 32) ? 2 : v ? 1 : 0), in BigUnsigned()
71 explicit BigUnsigned(absl::string_view sv) : size_(0), words_{} { in BigUnsigned()
109 size_ = (std::min)(size_ + word_shift, max_words); in ShiftLeft()
112 std::copy_backward(words_, words_ + size_ - word_shift, words_ + size_); in ShiftLeft()
114 for (int i = (std::min)(size_, max_words - 1); i > word_shift; --i) { in ShiftLeft()
119 // Grow size_ if necessary. in ShiftLeft()
120 if (size_ < max_word in ShiftLeft()
345 int size_; global() member in absl::strings_internal::BigUnsigned
[all...]
/third_party/protobuf/src/google/protobuf/stubs/
H A Dbytestream.cc69 : outbuf_(outbuf), capacity_(capacity), size_(0), overflowed_(false) { in CheckedArrayByteSink()
73 size_t available = capacity_ - size_; in Append()
78 if (n > 0 && bytes != (outbuf_ + size_)) { in Append()
82 memcpy(outbuf_ + size_, bytes, n); in Append()
84 size_ += n; in Append()
90 size_(0) { in GrowingArrayByteSink()
98 size_t available = capacity_ - size_; in Append()
99 if (bytes != (buf_ + size_)) { in Append()
108 if (n > 0 && bytes != (buf_ + size_)) { in Append()
109 memcpy(buf_ + size_, byte in Append()
[all...]
H A Dsubstitute.h92 : text_(value), size_(strlen(text_)) {} in SubstituteArg()
94 : text_(value.data()), size_(value.size()) {} in SubstituteArg()
98 : text_(nullptr), size_(-1) {} in SubstituteArg()
107 : text_(scratch_), size_(1) { scratch_[0] = value; } in SubstituteArg()
109 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
111 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
113 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
115 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
117 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
119 : text_(FastULongToBuffer(value, scratch_)), size_(strle in SubstituteArg()
136 int size_; global() member in google::protobuf::strings::internal::SubstituteArg
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dvalue-numbering-reducer.cc20 size_(0), in ValueNumberingReducer()
32 DCHECK_EQ(0, size_); in Reduce()
39 size_ = 1; in Reduce()
43 DCHECK(size_ < capacity_); in Reduce()
44 DCHECK(size_ + size_ / 4 < capacity_); in Reduce()
58 size_++; in Reduce()
61 if (size_ + size_ / 4 >= capacity_) Grow(); in Reduce()
63 DCHECK(size_ in Reduce()
[all...]
/third_party/node/deps/v8/src/base/
H A Daddress-region.h31 : address_(address), size_(size) {} in AddressRegion()
34 Address end() const { return address_ + size_; } in end()
36 size_t size() const { return size_; } in size()
37 void set_size(size_t size) { size_ = size; } in set_size()
39 bool is_empty() const { return size_ == 0; } in is_empty()
49 return (offset < size_) && (offset + size <= size_); in contains()
53 return contains(region.address_, region.size_); in contains()
64 return address_ == other.address_ && size_ == other.size_; in operator ==()
73 size_t size_ = 0; global() member in v8::base::AddressRegion
[all...]
/third_party/node/deps/v8/src/heap/
H A Dallocation-stats.h30 size_.store(stats.size_);
45 size_ = 0; in ClearSize()
54 size_t Size() const { return size_; } in Size()
63 size_t size = size_; in IncreaseAllocatedBytes()
66 size_.fetch_add(bytes); in IncreaseAllocatedBytes()
73 DCHECK_GE(size_, bytes); in DecreaseAllocatedBytes()
74 size_.fetch_sub(bytes); in DecreaseAllocatedBytes()
83 DCHECK_GE(capacity_ - bytes, size_); in DecreaseCapacity()
105 // |size_|
106 std::atomic<size_t> size_; global() member in v8::internal::AllocationStats
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_type_file.cpp18 MtpFsTypeFile::MtpFsTypeFile() : MtpFsTypeBasic(), size_(0), modifyDate_(0) {} in MtpFsTypeFile()
22 : MtpFsTypeBasic(id, parentId, storageId, name), size_(size), modifyDate_(modifyDate) in MtpFsTypeFile()
27 size_(file->filesize), in MtpFsTypeFile()
32 : MtpFsTypeBasic(copy), size_(copy.size_), modifyDate_(copy.modifyDate_) in MtpFsTypeFile()
45 f->filesize = size_; in ToLIBMTPFile()
55 size_ = rhs.size_; in operator =()
/third_party/icu/icu4c/source/common/
H A Dbytestream.cpp33 size_(0), appended_(0), overflowed_(false) { in CheckedArrayByteSink()
39 size_ = appended_ = 0; in Reset()
55 int32_t available = capacity_ - size_; in Append()
60 if (n > 0 && bytes != (outbuf_ + size_)) { in Append()
61 uprv_memcpy(outbuf_ + size_, bytes, n); in Append()
63 size_ += n; in Append()
75 int32_t available = capacity_ - size_; in GetAppendBuffer()
78 return outbuf_ + size_; in GetAppendBuffer()
/third_party/node/deps/icu-small/source/common/
H A Dbytestream.cpp33 size_(0), appended_(0), overflowed_(false) { in CheckedArrayByteSink()
39 size_ = appended_ = 0; in Reset()
55 int32_t available = capacity_ - size_; in Append()
60 if (n > 0 && bytes != (outbuf_ + size_)) { in Append()
61 uprv_memcpy(outbuf_ + size_, bytes, n); in Append()
63 size_ += n; in Append()
75 int32_t available = capacity_ - size_; in GetAppendBuffer()
78 return outbuf_ + size_; in GetAppendBuffer()
/third_party/skia/third_party/externals/icu/source/common/
H A Dbytestream.cpp33 size_(0), appended_(0), overflowed_(FALSE) { in CheckedArrayByteSink()
39 size_ = appended_ = 0; in Reset()
55 int32_t available = capacity_ - size_; in Append()
60 if (n > 0 && bytes != (outbuf_ + size_)) { in Append()
61 uprv_memcpy(outbuf_ + size_, bytes, n); in Append()
63 size_ += n; in Append()
75 int32_t available = capacity_ - size_; in GetAppendBuffer()
78 return outbuf_ + size_; in GetAppendBuffer()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/video_job_repository/
H A Dvideo_job_queue.cpp40 DP_CHECK_RETURN_RET(size_ == DEFAULT, nullptr); in Peek()
47 indexMap_[obj] = size_; in Push()
48 HeapInsert(size_++); in Push()
53 DP_CHECK_RETURN_RET(size_ == DEFAULT, nullptr); in Pop()
55 Swap(DEFAULT, size_ - 1); in Pop()
58 --size_; in Pop()
72 --size_; in Remove()
104 while (left < size_) { in Heapify()
105 uint32_t best = (left + 1 < size_ && comp_(heap_[left + 1], heap_[left])) ? left + 1 : left; in Heapify()
118 DP_CHECK_ERROR_RETURN_LOG(x < DEFAULT || x >= size_ || in Swap()
[all...]
/third_party/googletest/googletest/samples/
H A Dsample3-inl.h75 Queue() : head_(nullptr), last_(nullptr), size_(0) {} in Queue()
82 if (size_ > 0) { in Clear()
95 size_ = 0; in Clear()
100 size_t Size() const { return size_; } in Size()
117 if (size_ == 0) { in Enqueue()
119 size_ = 1; in Enqueue()
123 size_++; in Enqueue()
130 if (size_ == 0) { in Dequeue()
136 size_--; in Dequeue()
137 if (size_ in Dequeue()
164 size_t size_; // The number of elements in the queue. global() member in Queue
[all...]
/third_party/node/deps/brotli/c/enc/
H A Dringbuffer.h34 const uint32_t size_; member
60 *(uint32_t*)&rb->size_ = 1u << window_bits; in RingBufferSetup()
63 *(uint32_t*)&rb->total_size_ = rb->size_ + rb->tail_size_; in RingBufferSetup()
98 const size_t p = rb->size_ + masked_pos; in RingBufferWriteTail()
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()
137 if (BROTLI_PREDICT_TRUE(masked_pos + n <= rb->size_)) { in RingBufferWrite()
146 memcpy(&rb->buffer_[0], bytes + (rb->size_ - masked_pos), in RingBufferWrite()
147 n - (rb->size_ in RingBufferWrite()
[all...]

Completed in 19 milliseconds

12345678910>>...22