Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • read<TBuffer>(fd: number, buffer: TBuffer, offset: number, length: number, position: number | null, callback: function): void
  • Asynchronously reads data from the file referenced by the supplied file descriptor.

    Type parameters

    Parameters

    • fd: number

      A file descriptor.

    • buffer: TBuffer

      The buffer that the data will be written to.

    • offset: number

      The offset in the buffer at which to start writing.

    • length: number

      The number of bytes to read.

    • position: number | null

      The offset from the beginning of the file from which data should be read. If null, data will be read from the current position.

    • callback: function
        • (err: ErrnoException | null, bytesRead: number, buffer: TBuffer): void
        • Parameters

          Returns void

    Returns void

Index

Functions

Functions

__promisify__

  • __promisify__<TBuffer>(fd: number, buffer: TBuffer, offset: number, length: number, position: number | null): Promise<object>
  • Type parameters

    Parameters

    • fd: number

      A file descriptor.

    • buffer: TBuffer

      The buffer that the data will be written to.

    • offset: number

      The offset in the buffer at which to start writing.

    • length: number

      The number of bytes to read.

    • position: number | null

      The offset from the beginning of the file from which data should be read. If null, data will be read from the current position.

    Returns Promise<object>

Generated using TypeDoc