Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BinaryFormat

Package version

Formatter to serializing and deserializing a value with into a binary format.

Hierarchy

  • BinaryFormat

Index

Methods

Methods

fromBytes

  • Deseralize the given span context from binary encoding. If the input is a Buffer of incorrect size or unexpected fields, then this function will return null.

    Parameters

    • buffer: ArrayBuffer

      The span context to deserialize.

    Returns SpanContext | null

toBytes

  • Serialize the given span context into a Buffer.

    Parameters

    • spanContext: SpanContext

      The span context to serialize.

    Returns ArrayBuffer

Generated using TypeDoc