Triangle.js Docs
    Preparing search index...

    Variable decodeConst

    decode: (
        messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>,
        options?: UnpackOptions,
    ) => any = ...

    decode a theorypack message

    Type Declaration

      • (
            messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>,
            options?: UnpackOptions,
        ): any
      • Parameters

        • messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
        • Optionaloptions: UnpackOptions

        Returns any