Home
last modified time | relevance | path

Searched refs:bufferCapacity_ (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp141 if ((bufferSize_ + length) > bufferCapacity_) { in WriteRawData()
146 if (memcpy_s(buffer_ + bufferSize_, bufferCapacity_ - bufferSize_, data, length) != EOK) { in WriteRawData()
161 if ((bufferSize_ + length) > bufferCapacity_) { in WriteString()
166 … if (memcpy_s(buffer_ + bufferSize_, bufferCapacity_ - bufferSize_, str.c_str(), length) != EOK) { in WriteString()
186 if (bufferCapacity_ == 0) { in AllocateBuffer()
190 bufferCapacity_ = INITIAL_CAPACITY; in AllocateBuffer()
198 bufferCapacity_ = bytes; in AllocateBuffer()
205 if (newSize > bufferCapacity_) { in AllocateBuffer()
215 size_t newCapacity = bufferCapacity_ * CAPACITY_INCREASE_RATE; in ExpandBuffer()
231 bufferCapacity_ = newCapacity; in ExpandBuffer()
[all …]
Djs_serializer.h162 size_t bufferCapacity_ = 0; variable