Interface ByteStreamInterface
interface ByteStreamInterface { i: number; get buffer(): ArrayBuffer; get length(): number; get isDataAvailable(): boolean; readInt8(): number; readUint8(): number; readBytes(length): Uint8Array; readBytesUntilEnd(): Uint8Array; readInt16(oppositeEndian): number; readUint16(oppositeEndian): number; readInt32(oppositeEndian): number; readUint32(oppositeEndian): number; readBigInt64(oppositeEndian): bigint; readBigUint64(oppositeEndian): bigint; readFloat32(oppositeEndian): number; readFloat64(oppositeEndian): number; readVarInt(oppositeEndian,
maxByteLength): number; readVarUint(oppositeEndian,
maxByteLength): number; writeInt8(val): any; writeUint8(val): any; writeBytes(bytes): any; writeInt16(val,
oppositeEndian): any; writeUint16(val,
oppositeEndian): any; writeInt32(val,
oppositeEndian): any; writeUint32(val,
oppositeEndian): any; writeBigInt64(val,
oppositeEndian): any; writeBigUint64(val,
oppositeEndian): any; writeFloat32(val,
oppositeEndian): any; writeFloat64(val,
oppositeEndian): any; writeVarInt(val,
oppositeEndian): any; writeVarUint(val,
oppositeEndian): any; } Accessors
buffer
- get buffer(): ArrayBuffer
Returns ArrayBuffer
length
- get length(): number
Returns number
isDataAvailable
- get isDataAvailable(): boolean
Returns boolean
Methods
readInt8
- readInt8(): number
Returns number
readUint8
- readUint8(): number
Returns number
readBytes
- readBytes(length): Uint8Array
Returns Uint8Array
readBytesUntilEnd
- readBytesUntilEnd(): Uint8Array
Returns Uint8Array
readInt16
- readInt16(oppositeEndian): number
Returns number
readUint16
- readUint16(oppositeEndian): number
Returns number
readInt32
- readInt32(oppositeEndian): number
Returns number
readUint32
- readUint32(oppositeEndian): number
Returns number
readBigInt64
- readBigInt64(oppositeEndian): bigint
Returns bigint
readBigUint64
- readBigUint64(oppositeEndian): bigint
Returns bigint
readFloat32
- readFloat32(oppositeEndian): number
Returns number
readFloat64
- readFloat64(oppositeEndian): number
Returns number
readVarInt
- readVarInt(oppositeEndian, maxByteLength): number
Parameters
oppositeEndian: boolean
maxByteLength: number
Returns number
readVarUint
- readVarUint(oppositeEndian, maxByteLength): number
Parameters
oppositeEndian: boolean
maxByteLength: number
Returns number
writeInt8
- writeInt8(val): any
Returns any
writeUint8
- writeUint8(val): any
Returns any
writeBytes
- writeBytes(bytes): any
Parameters
bytes: Uint8Array | number[]
Returns any
writeInt16
- writeInt16(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
writeUint16
- writeUint16(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
writeInt32
- writeInt32(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
writeUint32
- writeUint32(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
writeBigInt64
- writeBigInt64(val, oppositeEndian): any
Parameters
val: bigint
oppositeEndian: boolean
Returns any
writeBigUint64
- writeBigUint64(val, oppositeEndian): any
Parameters
val: bigint
oppositeEndian: boolean
Returns any
writeFloat32
- writeFloat32(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
writeFloat64
- writeFloat64(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
writeVarInt
- writeVarInt(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
writeVarUint
- writeVarUint(val, oppositeEndian): any
Parameters
val: number
oppositeEndian: boolean
Returns any
현재 위치