Searched refs:newBuffer (Results 1 – 2 of 2) sorted by relevance
220 uint8_t *newBuffer = reinterpret_cast<uint8_t *>(malloc(newCapacity)); in ExpandBuffer() local221 if (newBuffer == nullptr) { in ExpandBuffer()224 if (memcpy_s(newBuffer, newCapacity, buffer_, bufferSize_) != EOK) { in ExpandBuffer()226 free(newBuffer); in ExpandBuffer()230 buffer_ = newBuffer; in ExpandBuffer()
371 auto newBuffer = vm_->GetNativeAreaAllocator()->AllocateBuffer(size); in NewJSRegExpByteCodeData() local372 if (memcpy_s(newBuffer, size, buffer, size) != EOK) { in NewJSRegExpByteCodeData()379 native->ResetExternalPointer(newBuffer); in NewJSRegExpByteCodeData()382 …JSHandle<JSNativePointer> pointer = NewJSNativePointer(newBuffer, NativeAreaAllocator::FreeBufferF… in NewJSRegExpByteCodeData()