We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0659d5e commit 4e0afa4Copy full SHA for 4e0afa4
src/crypto/crypto_util.h
@@ -777,20 +777,6 @@ class ArrayBufferOrViewContents {
777
std::shared_ptr<v8::BackingStore> store_;
778
};
779
780
-template <typename T>
781
-std::vector<T> CopyBuffer(const ArrayBufferOrViewContents<T>& buf) {
782
- std::vector<T> vec;
783
- vec->resize(buf.size());
784
- if (vec->size() > 0 && buf.data() != nullptr)
785
- memcpy(vec->data(), buf.data(), vec->size());
786
- return vec;
787
-}
788
-
789
790
-std::vector<T> CopyBuffer(v8::Local<v8::Value> buf) {
791
- return CopyBuffer(ArrayBufferOrViewContents<T>(buf));
792
793
794
v8::MaybeLocal<v8::Value> EncodeBignum(
795
Environment* env,
796
const BIGNUM* bn,
0 commit comments