Lines Matching refs:ByteSource
212 class ByteSource {
238 ByteSource release(std::optional<size_t> resize = std::nullopt) && {
247 ByteSource out = ByteSource::Allocated(data_, size_);
258 ByteSource() = default;
259 ByteSource(ByteSource&& other) noexcept;
260 ~ByteSource();
262 ByteSource& operator=(ByteSource&& other) noexcept;
264 ByteSource(const ByteSource&) = delete;
265 ByteSource& operator=(const ByteSource&) = delete;
289 static ByteSource Allocated(void* data, size_t size);
290 static ByteSource Foreign(const void* data, size_t size);
292 static ByteSource FromEncodedString(Environment* env,
296 static ByteSource FromStringOrBuffer(Environment* env,
299 static ByteSource FromString(Environment* env,
303 static ByteSource FromBuffer(v8::Local<v8::Value> buffer,
306 static ByteSource FromBIO(const BIOPointer& bio);
308 static ByteSource NullTerminatedCopy(Environment* env,
311 static ByteSource FromSymmetricKeyObjectHandle(v8::Local<v8::Value> handle);
313 static ByteSource FromSecretKeyBytes(
321 ByteSource(const void* data, void* allocated_data, size_t size) in ByteSource() function
542 ByteSource out_;
740 inline ByteSource ToByteSource() const { in ToByteSource()
741 return ByteSource::Foreign(data(), size()); in ToByteSource()
744 inline ByteSource ToCopy() const { in ToCopy()
745 if (size() == 0) return ByteSource(); in ToCopy()
746 ByteSource::Builder buf(size()); in ToCopy()
751 inline ByteSource ToNullTerminatedCopy() const { in ToNullTerminatedCopy()
752 if (size() == 0) return ByteSource(); in ToNullTerminatedCopy()
753 ByteSource::Builder buf(size() + 1); in ToNullTerminatedCopy()
794 bool SetRsaOaepLabel(const EVPKeyCtxPointer& rsa, const ByteSource& label);