Constructors
constructor
-
Parameters
-
Default value array: number[] = null
Accessors
position
- get position(): number
- set position(value: number): void
-
Returns number
-
Parameters
Returns void
Methods
read
- read(array: number[], offset?: number, length?: number): number
-
Parameters
-
array: number[]
-
Default value offset: number = 0
-
Default value length: number = array.length
Returns number
seek
-
Parameters
Returns number
setLength
- setLength(length: number): void
write
- write(array: number[], offset?: number, length?: number): void
-
Parameters
-
array: number[]
-
Default value offset: number = 0
-
Default value length: number = array.length
Returns void
writeByte
- writeByte(byte: number): void
writeBytes
- writeBytes(array: Uint8Array, offset?: number, length?: number): void
-
Parameters
-
array: Uint8Array
-
Default value offset: number = 0
-
Default value length: number = array.length
Returns void
writeLine
- writeLine(inputString?: string): void
-
Parameters
-
Default value inputString: string = null
Returns void
writeLine1
- writeLine1(inputString?: string, ...values: any[]): void
-
Parameters
-
Default value inputString: string = null
-
Rest ...values: any[]
Returns void
writeString
- writeString(inputString: string, newLine?: boolean): void
-
Parameters
-
inputString: string
-
Default value newLine: boolean = false
Returns void