Lace JavaScript API
    Preparing search index...

    Class Record

    Index
    canonicalLength: number

    Complete canonical length in bytes.

    dataOffset: number

    Where the Blob data starts in the canonical bytes.

    hash: string
    • Independent copy of the canonical bytes where the record holds them contiguously, else null.

      Returns Uint8Array<ArrayBufferLike>

    • Independent copy of the Blob data where the record holds it contiguously, else null.

      Returns Uint8Array<ArrayBufferLike>

    • Returns number

    • The Blob data; RangeError when longer than limit.

      Parameters

      • limit: number

      Returns Uint8Array

    • Up to length canonical bytes from offset, fewer only at the end; RangeError past the end.

      Parameters

      • offset: number
      • length: number

      Returns Uint8Array

    • The complete canonical bytes; RangeError when longer than limit.

      Parameters

      • limit: number

      Returns Uint8Array

    • Parameters

      • data: string
      • target: string

      Returns string