Home > @firebase/firestore > lite > Bytes
Bytes class
An immutable object representing an array of bytes.
Signature:
export declare class Bytes
Methods
| Method | Modifiers | Description |
|---|---|---|
| fromBase64String(base64) | static |
Creates a new Bytes object from the given Base64 string, converting it to bytes. |
| fromUint8Array(array) | static |
Creates a new Bytes object from the given Uint8Array. |
| isEqual(other) | Returns true if this Bytes object is equal to the provided one. |
|
| toBase64() | Returns the underlying bytes as a Base64-encoded string. | |
| toString() | Returns a string representation of the Bytes object. |
|
| toUint8Array() | Returns the underlying bytes in a new Uint8Array. |