Function writeVarint

  • Write a varint. Can be max 64-bits. Numbers are coerced to an unsigned while number before using this function.

    Parameters

    • val: number

      any whole unsigned number.

    • bufPos: BufferPosition

      the buffer with it's position to write at

    Returns void