@aracna/core - v1.5.0
    Preparing search index...

    Class AracnaBlob

    The AracnaBlob class is built on top of the Blob class.

    • The data contained in the Blob can be resolved asynchronously and accessed at a later time from the instance itself.
    • The instance supports JSON serialization and deserialization out of the box unlike the Blob class.

    Aracna Reference

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _arrayBuffer?: ArrayBuffer
    _text?: string
    blob: Blob

    The Blob instance.

    id: string

    The unique identifier of the instance.

    Accessors

    • get arrayBuffer(): ArrayBuffer

      Returns the data contained in the Blob as an ArrayBuffer. You need to call the "resolveArrayBuffer" method before accessing this property.

      Returns ArrayBuffer

    • get text(): string

      Returns the data contained in the Blob as a string. You need to call the "resolveText" method before accessing this property.

      Returns string

    • get uInt8Array(): Uint8Array<ArrayBuffer>

      Returns the data contained in the Blob as a Uint8Array. You need to call the "resolveArrayBuffer" or "resolveText" method before accessing this property.

      Returns Uint8Array<ArrayBuffer>

    Methods

    • Resolves the data contained in the Blob as an ArrayBuffer.

      Returns Promise<void>