Constructors
constructor
- new JavaDataInput(buf: ArrayBufferLike | ArrayBufferView): JavaDataInput
-
Parameters
-
buf: ArrayBufferLike | ArrayBufferView
Properties
Private data
data: Uint8Array
Private pos
pos: number = 0
Private view
view: DataView
Methods
readBoolean
-
Returns boolean
readByte
-
Returns number
readChar
-
Returns number
readDouble
-
Returns number
readFloat
-
Returns number
readFully
- readFully(buf: ArrayBufferLike | ArrayBufferView): void
-
Parameters
-
buf: ArrayBufferLike | ArrayBufferView
Returns void
readInt
-
Returns number
readLine
-
Returns string
readLong
-
Returns bigint
readShort
-
Returns number
readUTF
-
Returns string
readUnsignedByte
- readUnsignedByte(): number
-
Returns number
readUnsignedShort
- readUnsignedShort(): number
-
Returns number
reset
-
Returns void
skipBytes
- skipBytes(n: number): number
-
Parameters
Returns number