Constructors
constructor
- new JavaDataOutput(buf: ArrayBufferLike | ArrayBufferView): JavaDataOutput
-
Parameters
-
buf: ArrayBufferLike | ArrayBufferView
Properties
Private data
data: Uint8Array
Private pos
pos: number = 0
Private view
view: DataView
Methods
reset
-
Returns void
write
- write(buf: ArrayBufferLike | ArrayBufferView): void
-
Parameters
-
buf: ArrayBufferLike | ArrayBufferView
Returns void
writeBoolean
- writeBoolean(b: boolean): void
-
Parameters
Returns void
writeByte
- writeByte(v: number): void
-
Parameters
Returns void
writeBytes
- writeBytes(s: string): void
-
Parameters
Returns void
writeChar
- writeChar(c: number): void
-
Parameters
Returns void
writeChars
- writeChars(s: string): void
-
Parameters
Returns void
writeDouble
- writeDouble(v: number): void
-
Parameters
Returns void
writeFloat
- writeFloat(v: number): void
-
Parameters
Returns void
writeInt
- writeInt(v: number): void
-
Parameters
Returns void
writeLong
- writeLong(v: bigint): void
-
Parameters
Returns void
writeShort
- writeShort(v: number): void
-
Parameters
Returns void
writeUTF
- writeUTF(s: string): void
-
Parameters
Returns void
Static sizeHintWriteUTF
- sizeHintWriteUTF(s: string): number
-
Parameters
Returns number