Skip to main content

bufferToInt

Callable

  • bufferToInt(buf: Buffer): number

  • Converts a Buffer to a Number.

    @throws

    If the input number exceeds 53 bits.


    Parameters

    • buf: Buffer

      Buffer object to convert

    Returns number