Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/serializer/
Dserialize_data.h94 size_t newCapacity = bufferCapacity_ * CAPACITY_INCREASE_RATE; in ExpandBuffer()
110 bufferCapacity_ = newCapacity; in ExpandBuffer()
126 if (bufferCapacity_ == 0) { in AllocateBuffer()
130 bufferCapacity_ = INITIAL_CAPACITY; in AllocateBuffer()
138 bufferCapacity_ = bytes; in AllocateBuffer()
145 if (newSize > bufferCapacity_) { in AllocateBuffer()
158 if ((bufferSize_ + length) > bufferCapacity_) { in RawDataEmit()
163 if (memcpy_s(buffer_ + bufferSize_, bufferCapacity_ - bufferSize_, data, length) != EOK) { in RawDataEmit()
330 size_t bufferCapacity_ = 0; variable
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp143 if ((bufferSize_ + length) > bufferCapacity_) { in WriteRawData()
148 if (memcpy_s(buffer_ + bufferSize_, bufferCapacity_ - bufferSize_, data, length) != EOK) { in WriteRawData()
163 if ((bufferSize_ + length) > bufferCapacity_) { in WriteString()
168 … if (memcpy_s(buffer_ + bufferSize_, bufferCapacity_ - bufferSize_, str.c_str(), length) != EOK) { in WriteString()
188 if (bufferCapacity_ == 0) { in AllocateBuffer()
192 bufferCapacity_ = INITIAL_CAPACITY; in AllocateBuffer()
200 bufferCapacity_ = bytes; in AllocateBuffer()
207 if (newSize > bufferCapacity_) { in AllocateBuffer()
217 size_t newCapacity = bufferCapacity_ * CAPACITY_INCREASE_RATE; in ExpandBuffer()
233 bufferCapacity_ = newCapacity; in ExpandBuffer()
[all …]
Djs_serializer.h173 size_t bufferCapacity_ = 0; variable