void WebCryptoResult::completeWithBuffer(const void* bytes, unsigned bytesSize) { WebArrayBuffer buffer = blink::WebArrayBuffer::create(bytesSize, 1); RELEASE_ASSERT(!buffer.isNull()); memcpy(buffer.data(), bytes, bytesSize); completeWithBuffer(buffer); }
void WebCryptoResult::completeWithBuffer(const WebArrayBuffer& buffer) { RELEASE_ASSERT(!buffer.isNull()); m_impl->completeWithBuffer(buffer); reset(); }