Searched refs:newBuffer (Results 1 – 2 of 2) sorted by relevance
184 uint8_t *newBuffer = reinterpret_cast<uint8_t *>(malloc(newCapacity)); in ExpandBuffer() local185 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()
239 auto newBuffer = vm_->GetNativeAreaAllocator()->AllocateBuffer(size); in NewJSRegExpByteCodeData() local240 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()