Constructors
constructor
- new ClientFile(session: IBasicSession, nodeId: NodeId): ClientFile
-
Parameters
-
session: IBasicSession
-
nodeId: NodeId
Properties
fileHandle
fileHandle: number = 0
Methods
getPosition
- getPosition(): Promise<UInt64>
open
-
Parameters
Returns Promise<number>
read
- read(bytesToRead: Int32): Promise<Buffer>
-
Parameters
Returns Promise<Buffer>
setPosition
-
Parameters
Returns Promise<void>
write
- write(data: Buffer): Promise<void>
-
Parameters
Returns Promise<void>