Blob

class Blob : Comparable


Immutable class representing an array of bytes in Cloud Firestore.

Summary

Public functions

Int
compareTo(other: Blob)
Boolean
equals(other: Any?)
java-static Blob

Creates a new Blob instance from the provided bytes.

Int
ByteArray<Byte>
String

Public functions

compareTo

fun compareTo(other: Blob): Int

equals

fun equals(other: Any?): Boolean

fromBytes

java-static fun fromBytes(bytes: ByteArray): Blob

Creates a new Blob instance from the provided bytes. Will make a copy of the bytes passed in.

Parameters
bytes: ByteArray

The bytes to use for this Blob instance.

Returns
Blob

The new Blob instance

hashCode

fun hashCode(): Int

toBytes

fun toBytes(): ByteArray<Byte>
Returns
ByteArray<Byte>

The bytes of this blob as a new byte[] array.

toString

fun toString(): String