Bytes
An immutable object representing an array of bytes.
class Bytes {}
§Methods
§
toBase64(): string
[src]Returns the underlying bytes as a Base64-encoded string.
@return
The Base64-encoded string created from the Bytes
object.
§
toJSON(): object
[src]Returns a JSON-serializable representation of this Bytes
instance.
@return
a JSON representation of this object.
§
toString(): string
[src]Returns a string representation of the Bytes
object.
@return
A string representation of the Bytes
object.
§
toUint8Array(): Uint8Array
[src]Returns the underlying bytes in a new Uint8Array
.
@return
The Uint8Array created from the Bytes
object.
§Static Methods
§
Builds a Bytes
instance from a JSON object created by Bytes.toJSON.
@param json
a JSON object represention of a Bytes
instance
@return
an instance of Bytes if the JSON object could be parsed. Throws a FirestoreError if an error occurs.