Class CallContext

Hierarchy

  • CallContext

Properties

#arrayBufferType: (new (size) => ArrayBufferLike)

Type declaration

    • new (size): ArrayBufferLike
    • Parameters

      • size: number

      Returns ArrayBufferLike

#config: PluginConfig
#decoder: TextDecoder
#encoder: TextEncoder
#hostContext: any
#logLevel: LogLevelPriority
#logger: Console
#memoryOptions: MemoryOptions
#stack: [null | number, null | number, null | number][]
#vars: Map<string, Uint8Array> = ...
#varsSize: number

Accessors

Methods

  • Allocate a chunk of host memory visible to plugins via other extism host functions. Returns the start address of the block.

    Parameters

    • size: number | bigint

    Returns bigint

  • Delete a variable if present.

    Parameters

    • name: string

    Returns void

  • Set a variable to a given string or byte array value.

    Parameters

    • name: string
    • value: string | Uint8Array

    Returns void

  • Store a string or Uint8Array value in extism memory.

    Parameters

    • input: string | Uint8Array

    Returns bigint

    bigint

Generated using TypeDoc