c0data
    Preparing search index...

    Class Body

    Index
    • Parse the body in buf[start, stop). level reads it as the inside of a nested level (no commits). files is a body already parsed (used by the Parser).

      Parameters

      • buf: Uint8Array
      • start: number = 0
      • stop: number = buf.length
      • level: boolean = false
      • Optionalfiles: FileView[]

      Returns Body

    buf: Uint8Array
    files: FileView[]
    start: number
    stop: number
    • get bare(): boolean

      Whether the body is just records: one unnamed file, one unnamed group.

      Returns boolean

    • get groupCount(): number

      Groups of the first file.

      Returns number

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

      Returns Uint8Array<ArrayBufferLike>[]

    • get name(): Uint8Array

      Name of the first file (empty when the body has no FS).

      Returns Uint8Array

    • get records(): Record[]

      Records of the body when it is a bare record stream: the unnamed group's records.

      Returns Record[]