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 6bdd0f5 commit f14c750Copy full SHA for f14c750
src/crypto/crypto_util.h
@@ -752,20 +752,6 @@ class ArrayBufferOrViewContents {
752
std::shared_ptr<v8::BackingStore> store_;
753
};
754
755
-template <typename T>
756
-std::vector<T> CopyBuffer(const ArrayBufferOrViewContents<T>& buf) {
757
- std::vector<T> vec;
758
- vec->resize(buf.size());
759
- if (vec->size() > 0 && buf.data() != nullptr)
760
- memcpy(vec->data(), buf.data(), vec->size());
761
- return vec;
762
-}
763
-
764
765
-std::vector<T> CopyBuffer(v8::Local<v8::Value> buf) {
766
- return CopyBuffer(ArrayBufferOrViewContents<T>(buf));
767
768
769
v8::MaybeLocal<v8::Value> EncodeBignum(
770
Environment* env,
771
const BIGNUM* bn,
0 commit comments