Type Parameters

  • T

  • TParseInput = T

Hierarchy (view full)

Constructors

Properties

_dynamicSizeCodec: void = ...
name: string

Name of this codec used to export .mol file.

Methods

  • Export the schema of this codec and all the dependencies into the map.

    The order of the map is guaranteed that the dependency is always exported before the dependent.

    Parameters

    • exported: Map<string, string>

    Returns Map<string, string>

  • Pack the value and append the buffer to the provided writer.

    Take the advantage of writer and append the buffer as blocks. The writer can concatenate all blocks into one buffer for the final result.

    Parameters

    Returns void

  • Unpack the value from the molecule buffer.

    Parameters

    • buffer: Uint8Array
    • Optional strict: boolean

      whehter to allow unknown fields in the buffer. True to enable. It is off by default.

    Returns T

    Throws

    CodecError

Generated using TypeDoc