c0data
    Preparing search index...

    Class Record

    A record: positional or keyed. Zero-copy accessors. A sub-unit is not a unit of the record: fields, values and pairs list the units; unit(n) and keyUnit(key) give a unit with its sub-units.

    Index
    • Parameters

      • buf: Uint8Array
      • start: number
      • end: number

      Returns Record

    • get fields(): Uint8Array<ArrayBufferLike>[]

      Returns Uint8Array<ArrayBufferLike>[]

    • get keyed(): boolean

      Whether the record is keyed (it holds a keyed unit, live or dead).

      Returns boolean

    • get keys(): Uint8Array<ArrayBufferLike>[]

      Keys in written order.

      Returns Uint8Array<ArrayBufferLike>[]

    • get offset(): number

      Offset of the record's first byte in the buffer.

      Returns number

    • get pairs(): [Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>][]

      Pairs in written order: [key, logical value].

      Returns [Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>][]

    • get raw(): Uint8Array

      Raw bytes of the record (after its RS).

      Returns Uint8Array

    • get values(): Uint8Array<ArrayBufferLike>[]

      Returns Uint8Array<ArrayBufferLike>[]

    • Raw slice of unit n of the result (layout at its edges included).

      Parameters

      • n: number

      Returns Uint8Array

    • Logical value for a key (last wins), or undefined.

      Parameters

      • key: string

      Returns Uint8Array<ArrayBufferLike> | undefined

    • Logical value for a key as a UTF-8 string, or undefined.

      Parameters

      • key: string

      Returns string | undefined

    • Parameters

      • key: string

      Returns boolean

    • Raw unit for a key (last wins), or undefined.

      Parameters

      • key: string

      Returns Uint8Array<ArrayBufferLike> | undefined

    • The level under a key, or undefined.

      Parameters

      • key: string

      Returns Body | undefined

    • The unit under a key with its sub-units (last wins), or undefined.

      Parameters

      • key: string

      Returns RecordUnit | undefined

    • Unit n as a flat list: a level holding at most one positional record.

      Parameters

      • n: number

      Returns Uint8Array<ArrayBufferLike>[]

    • Logical value of unit n as a UTF-8 string.

      Parameters

      • n: number

      Returns string

    • Logical value of unit n.

      Parameters

      • n: number

      Returns Uint8Array