• Read from the buffer.

    Parameters

    • fd: number

      The file descriptor for the buffer reader.

    • buffer: Uint8Array

      The buffer to read into.

    Returns number

    The number of bytes read.