- __promisify__<TBuffer>(fd, buffer, offset, length, position): Promise<{
buffer: TBuffer;
bytesRead: number;
}> Parameters
fd: number
buffer: TBuffer
offset: number
length: number
position: null | number
Returns Promise<{
buffer: TBuffer;
bytesRead: number;
}>
- __promisify__<TBuffer>(fd, options): Promise<{
buffer: TBuffer;
bytesRead: number;
}> Returns Promise<{
buffer: TBuffer;
bytesRead: number;
}>
- __promisify__(fd): Promise<{
buffer: ArrayBufferView;
bytesRead: number;
}> Returns Promise<{
buffer: ArrayBufferView;
bytesRead: number;
}>
A file descriptor.