Firebase.Firestore.Blob

An immutable sequence of bytes.

Summary

Although this is a struct, it's effectively just a wrapper around a byte[].

Inheritance

Inherits from: IEquatable< Blob >

Public attributes

Length => _bytes.Length
int
The length of the blob, in bytes.
this[int index] => _bytes[index]
byte
Returns the byte at indexindex .

Public functions

Equals(object obj)
override bool
Equals(Blob other)
bool
GetHashCode()
override int
ToBytes()
byte[]
Returns a copy of thisBlob as a byte[].
ToString()
override string

Public static functions

CopyFrom(byte[] bytes)
Constructs a newBlob by copying the current content ofbytes .
operator!=(Blob lhs,Blob rhs)
bool
Operator overload to compare twoBlob values for inequality.
operator==(Blob lhs,Blob rhs)
bool
Operator overload to compare twoBlob values for equality.

Public attributes

Length

intFirebase::Firestore::Blob::Length=>_bytes.Length

The length of the blob, in bytes.

this[int index]

byteFirebase::Firestore::Blob::this[intindex]=>_bytes[index]

Returns the byte at indexindex .

Details
Parameters
index
The index in the blob to return. Must be greater than or equal to 0, and less thanLength.
Returns
The byte at indexindex .

Public functions

Equals

overrideboolFirebase::Firestore::Blob::Equals(objectobj)

Equals

boolFirebase::Firestore::Blob::Equals(Blobother)

GetHashCode

overrideintFirebase::Firestore::Blob::GetHashCode()

ToBytes

byte[]Firebase::Firestore::Blob::ToBytes()

Returns a copy of thisBlob as a byte[].

ToString

overridestringFirebase::Firestore::Blob::ToString()

Public static functions

CopyFrom

BlobFirebase::Firestore::Blob::CopyFrom(byte[]bytes)

Constructs a newBlob by copying the current content ofbytes .

Details
Parameters
bytes
Byte array to copy.
Returns
A new blob containing a copy ofbytes .

operator!=

boolFirebase::Firestore::Blob::operator!=(Bloblhs,Blobrhs)

Operator overload to compare twoBlob values for inequality.

Details
Parameters
lhs
Left value to compare
rhs
Right value to compare
Returns
false iflhs is equal torhs ; otherwise true.

operator==

boolFirebase::Firestore::Blob::operator==(Bloblhs,Blobrhs)

Operator overload to compare twoBlob values for equality.

Details
Parameters
lhs
Left value to compare
rhs
Right value to compare
Returns
true iflhs is equal torhs ; otherwise false.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-06-17 UTC.