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 | intThe length of the blob, in bytes. |
this[int index] => _bytes[index] | byteReturns 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) | boolOperator overload to compare twoBlob values for inequality. |
operator==(Blob lhs,Blob rhs) | boolOperator 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 |
| ||
| Returns | The byte at indexindex . |
Public functions
Equals
overrideboolFirebase::Firestore::Blob::Equals(objectobj)
Equals
boolFirebase::Firestore::Blob::Equals(Blobother)
GetHashCode
overrideintFirebase::Firestore::Blob::GetHashCode()
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 |
| ||
| Returns | A new blob containing a copy ofbytes . |
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.