Interface DeviceDriver<TData>
Properties
Optional
isBuffered
isBuffered?: boolean
Methods
Optional
init
- init(ino): {
data?: TData;
major?: number;
minor?: number;
} Experimental
Returns {
data?: TData;
major?: number;
minor?: number;
}
Device.data
Optional
Experimental
data?: TData
Optional
Experimental
major?: number
Optional
Experimental
minor?: number
File operations
Optional
close
- close(file): void
Returns void
read
- read(file, buffer, offset?, length?, position?): number
Parameters
- file: DeviceFile
- buffer: ArrayBufferView
Optional
offset: numberOptional
length: numberOptional
position: number
Returns number
Optional
sync
- sync(file): void
Returns void
write
- write(file, buffer, offset, length, position?): number
Parameters
- file: DeviceFile
- buffer: Uint8Array
- offset: number
- length: number
Optional
position: number
Returns number
A device driver