Constructors

Methods

  • Parameters

    • buffer: Buffer
    • bytesRead: number

    Returns undefined | "utf16le" | "utf8bom" | "utf16be"

  • Parameters

    • encoding: string
    • options: {
          overwriteEncoding?: boolean;
          read: ((length) => Promise<Uint8Array>);
      }
      • Optional overwriteEncoding?: boolean
      • read: ((length) => Promise<Uint8Array>)
          • (length): Promise<Uint8Array>
          • Parameters

            • length: number

            Returns Promise<Uint8Array>

    Returns Promise<ResourceEncoding>