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 index index .

Public functions

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

Public static functions

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

Public attributes

Length

int Firebase::Firestore::Blob::Length => _bytes.Length

The length of the blob, in bytes.

this[int index]

byte Firebase::Firestore::Blob::this[int index] => _bytes[index]

Returns the byte at index index .

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

Public functions

Equals

override bool Firebase::Firestore::Blob::Equals(
  object obj
)

Equals

bool Firebase::Firestore::Blob::Equals(
  Blob other
)

GetHashCode

override int Firebase::Firestore::Blob::GetHashCode()

ToBytes

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

Returns a copy of this Blob as a byte[].

ToString

override string Firebase::Firestore::Blob::ToString()

Public static functions

CopyFrom

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

Constructs a new Blob by copying the current content of bytes .

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

operator!=

bool Firebase::Firestore::Blob::operator!=(
  Blob lhs,
  Blob rhs
)

Operator overload to compare two Blob values for inequality.

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

operator==

bool Firebase::Firestore::Blob::operator==(
  Blob lhs,
  Blob rhs
)

Operator overload to compare two Blob values for equality.

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