ZenFS Archives
    Preparing search index...

    Class VolumeDescriptor<T>

    Type Parameters

    • T extends ArrayBufferLike = ArrayBufferLike

    Hierarchy (View Summary)

    • {
          "[toStringTag]": string;
          buffer: any;
          byteLength: number;
          byteOffset: number;
          constructor: StructConstructor<object>;
          getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
          getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
          getFloat16(byteOffset: number, littleEndian?: boolean): number;
          getFloat32(byteOffset: number, littleEndian?: boolean): number;
          getFloat64(byteOffset: number, littleEndian?: boolean): number;
          getInt16(byteOffset: number, littleEndian?: boolean): number;
          getInt32(byteOffset: number, littleEndian?: boolean): number;
          getInt8(byteOffset: number): number;
          getUint16(byteOffset: number, littleEndian?: boolean): number;
          getUint32(byteOffset: number, littleEndian?: boolean): number;
          getUint8(byteOffset: number): number;
          setBigInt64(
              byteOffset: number,
              value: bigint,
              littleEndian?: boolean,
          ): void;
          setBigUint64(
              byteOffset: number,
              value: bigint,
              littleEndian?: boolean,
          ): void;
          setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void;
          setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
          setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
          setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
          setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
          setInt8(byteOffset: number, value: number): void;
          setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
          setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
          setUint8(byteOffset: number, value: number): void;
      }
    Index

    Constructors

    • Type Parameters

      • T extends ArrayBufferLike = ArrayBufferLike

      Parameters

      • Optionalbuffer: T
      • OptionalbyteOffset: number
      • OptionalbyteLength: number

      Returns VolumeDescriptor<T>

    Properties

    "[toStringTag]": string
    buffer: any

    The ArrayBuffer instance referenced by the array.

    byteLength: number

    The length in bytes of the array.

    byteOffset: number

    The offset in bytes of the array.

    constructor: StructConstructor<object>

    The initial value of Object.prototype.constructor is the standard built-in Object constructor.

    alignment: number
    array?: TypeArrayConstructor<BufferView<any> & ArrayBufferView<ArrayBufferLike>>
    isUnion: boolean
    name: string
    size: number

    Accessors

    __padding__7: number
    standardIdentifier: string
    version: number

    Methods

    • Gets the BigInt64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns bigint

    • Gets the BigUint64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns bigint

    • Gets the Float16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns number

    • Gets the Float32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns number

    • Gets the Float64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns number

    • Gets the Int16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns number

    • Gets the Int32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns number

    • Gets the Int8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      Returns number

    • Gets the Uint16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns number

    • Gets the Uint32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be read.

      Returns number

    • Gets the Uint8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be retrieved.

      Returns number

    • Stores a BigInt64 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: bigint

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores a BigUint64 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: bigint

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Float16 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Float32 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Float64 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Int16 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Int32 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Int8 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      Returns void

    • Stores an Uint16 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Uint32 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      • OptionallittleEndian: boolean

        If false or undefined, a big-endian value should be written.

      Returns void

    • Stores an Uint8 value at the specified byte offset from the start of the view.

      Parameters

      • byteOffset: number

        The place in the buffer at which the value should be set.

      • value: number

        The value to set.

      Returns void

    • Get a value from a buffer

      Parameters

      • this: void
      • buffer: ArrayBufferLike
      • offset: number

      Returns BufferView<any> & ArrayBufferView<ArrayBufferLike>

    • Set a value in a buffer

      Parameters

      • this: void
      • buffer: ArrayBufferLike
      • offset: number
      • value: BufferView<any> & ArrayBufferView<ArrayBufferLike>

      Returns void