Home
last modified time | relevance | path

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

/ark/js_runtime/ecmascript/
Djs_serializer.cpp184 uint8_t *newBuffer = reinterpret_cast<uint8_t *>(malloc(newCapacity)); in ExpandBuffer() local
185 if (newBuffer == nullptr) { in ExpandBuffer()
188 if (memcpy_s(newBuffer, newCapacity, buffer_, bufferSize_) != EOK) { in ExpandBuffer()
190 free(newBuffer); in ExpandBuffer()
194 buffer_ = newBuffer; in ExpandBuffer()
Dobject_factory.cpp239 auto newBuffer = vm_->GetNativeAreaAllocator()->AllocateBuffer(size); in NewJSRegExpByteCodeData() local
240 if (memcpy_s(newBuffer, size, buffer, size) != EOK) { in NewJSRegExpByteCodeData()
247 native->ResetExternalPointer(newBuffer); in NewJSRegExpByteCodeData()
250 …JSHandle<JSNativePointer> pointer = NewJSNativePointer(newBuffer, NativeAreaAllocator::FreeBufferF… in NewJSRegExpByteCodeData()