happy-codec
    Preparing search index...

    Type Alias DataSource

    DataSource: string | BufferSource

    Data source type, can be a string or BufferSource.

    1.0.0

    // String type
    const strData: DataSource = 'Hello, World!';

    // ArrayBuffer type
    const bufferData: DataSource = new ArrayBuffer(8);

    // Uint8Array type
    const u8aData: DataSource = new Uint8Array([1, 2, 3]);