Class PluginOutput

PluginOutput is a view around some memory exposed by the plugin. Typically returned by plugin.call() or * | callContext.read(). It implements the read side of DataView along with methods for reading string and JSON data out of the backing buffer.

Hierarchy

  • DataView
    • PluginOutput

Properties

#bytes: null | Uint8Array = null
[toStringTag]: string
buffer: ArrayBuffer
byteLength: number
byteOffset: number
#decoder: TextDecoder = ...

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.

    • Optional littleEndian: 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.

    • Optional littleEndian: boolean

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

    Returns bigint

  • 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.

    • Optional littleEndian: 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.

    • Optional littleEndian: 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.

    • Optional littleEndian: 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.

    • Optional littleEndian: 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.

    • Optional littleEndian: 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.

    • Optional littleEndian: 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

  • Parameters

    • _byteOffset: number
    • _value: bigint
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: bigint
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number
    • Optional _littleEndian: boolean

    Returns void

  • Parameters

    • _byteOffset: number
    • _value: number

    Returns void

Generated using TypeDoc