Function decode

  • Type Parameters

    • T = any

    Parameters

    • buffer: Buffer

    Returns T

    Description

    AMF3 decode function

    Limitations:

    • see encode description section

    Example

    import { encode, decode } from '@biorate/amf';

    const buffer = encode({ test: 1 });

    console.log(decode(buffer)); // { test: 1 }

Generated using TypeDoc