Lines Matching refs:Blob

35 void Blob::Initialize(
53 Local<FunctionTemplate> Blob::GetConstructorTemplate(Environment* env) {
62 FIXED_ONE_BYTE_STRING(env->isolate(), "Blob"));
70 bool Blob::HasInstance(Environment* env, v8::Local<v8::Value> object) {
74 BaseObjectPtr<Blob> Blob::Create(Environment* env,
81 return BaseObjectPtr<Blob>();
85 return BaseObjectPtr<Blob>();
87 return MakeBaseObject<Blob>(env, obj, store, length);
90 void Blob::New(const FunctionCallbackInfo<Value>& args) {
104 CHECK(entry->IsArrayBufferView() || Blob::HasInstance(env, entry));
110 view->Buffer()->Detach(); // The Blob will own the backing store now.
114 Blob* blob;
123 BaseObjectPtr<Blob> blob = Create(env, entries, length);
128 void Blob::ToArrayBuffer(const FunctionCallbackInfo<Value>& args) {
130 Blob* blob;
137 void Blob::ToSlice(const FunctionCallbackInfo<Value>& args) {
139 Blob* blob;
145 BaseObjectPtr<Blob> slice = blob->Slice(env, start, end);
150 void Blob::MemoryInfo(MemoryTracker* tracker) const {
154 MaybeLocal<Value> Blob::GetArrayBuffer(Environment* env) {
175 BaseObjectPtr<Blob> Blob::Slice(Environment* env, size_t start, size_t end) {
206 Blob::Blob(
218 Blob::BlobTransferData::Deserialize(
226 return Blob::Create(env, store_, length_);
229 BaseObject::TransferMode Blob::GetTransferMode() const {
233 std::unique_ptr<worker::TransferData> Blob::CloneForMessaging() const {
237 void Blob::StoreDataObject(const v8::FunctionCallbackInfo<v8::Value>& args) {
242 CHECK(Blob::HasInstance(env, args[1])); // Blob
247 Blob* blob;
256 BaseObjectPtr<Blob>(blob),
261 void Blob::RevokeDataObject(const v8::FunctionCallbackInfo<v8::Value>& args) {
272 void Blob::GetDataObject(const v8::FunctionCallbackInfo<v8::Value>& args) {
308 Blob* blob,
377 CHECK(Blob::HasInstance(env, args[0]));
379 Blob* blob;
421 const BaseObjectPtr<Blob>& blob_,
486 void Blob::RegisterExternalReferences(ExternalReferenceRegistry* registry) {
487 registry->Register(Blob::New);
488 registry->Register(Blob::ToArrayBuffer);
489 registry->Register(Blob::ToSlice);
490 registry->Register(Blob::StoreDataObject);
491 registry->Register(Blob::GetDataObject);
492 registry->Register(Blob::RevokeDataObject);
499 NODE_BINDING_CONTEXT_AWARE_INTERNAL(blob, node::Blob::Initialize)
500 NODE_BINDING_EXTERNAL_REFERENCE(blob, node::Blob::RegisterExternalReferences)