Class CallContext

Hierarchy

  • CallContext

Properties

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

Type declaration

    • new (size): ArrayBufferLike
    • Parameters

      • size: number

      Returns ArrayBufferLike

#blocks: (null | Block)[] = []
#config: PluginConfig
#decoder: TextDecoder
#encoder: TextEncoder
#logger: Console
#stack: [null | number, null | number, null | number][]
#vars: Map<string, number> = ...

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

  • Set a variable to a given string or byte array value. Returns the start address of the variable. The start address is reused when changing the value of an existing variable.

    Parameters

    • name: string
    • value: string | Uint8Array

    Returns bigint

    bigint

  • Store a string or Uint8Array value in extism memory.

    Parameters

    • input: string | Uint8Array

    Returns bigint

    bigint

Generated using TypeDoc