libmedia • Docs
libmedia / common/io/IOWriterSync / IOWriterSync
BytesWriterSync
new IOWriterSync(
size
,bigEndian
,map
?):IOWriterSync
• size: number
= undefined
• bigEndian: boolean
= true
是否按大端字节序写,默认大端字节序(网络字节序)
• map?: Uint8ArrayInterface
common/io/IOWriterSync.ts:32
error:
number
common/io/IOWriterSync.ts:23
onFlush: (
data
,pos
?) =>number
• data: Uint8Array
• pos?: bigint
number
common/io/IOWriterSync.ts:25
onSeek: (
seek
) =>number
• seek: bigint
number
common/io/IOWriterSync.ts:26
back(
length
):void
• length: number
void
common/io/IOWriterSync.ts:335
encodeString(
str
):Uint8Array
• str: string
Uint8Array
common/io/IOWriterSync.ts:270
flush():
void
void
common/io/IOWriterSync.ts:274
flushToPos(
pos
):void
• pos: bigint
void
common/io/IOWriterSync.ts:290
getBuffer():
Uint8Array
Uint8Array
common/io/IOWriterSync.ts:341
getBufferSize():
number
number
common/io/IOWriterSync.ts:355
getPointer():
number
获取当前写指针
number
common/io/IOWriterSync.ts:211
getPos():
bigint
bigint
common/io/IOWriterSync.ts:215
remainingLength():
number
获取剩余可写节数
number
common/io/IOWriterSync.ts:224
reset():
void
void
common/io/IOWriterSync.ts:349
seek(
pos
):void
• pos: bigint
void
common/io/IOWriterSync.ts:305
seekInline(
pos
):void
• pos: number
void
common/io/IOWriterSync.ts:323
setEndian(
bigEndian
):void
• bigEndian: boolean
void
common/io/IOWriterSync.ts:345
skip(
length
):void
• length: number
void
common/io/IOWriterSync.ts:329
writeBuffer(
buffer
):void
写指定长度的二进制 buffer 数据
• buffer: Uint8ArrayInterface
void
common/io/IOWriterSync.ts:234
writeDouble(
value
):void
写双精度浮点数
• value: number
void
common/io/IOWriterSync.ts:197
writeFloat(
value
):void
写单精度浮点数
• value: number
void
common/io/IOWriterSync.ts:185
writeInt16(
value
):void
写 16 位有符号整数
• value: number
void
common/io/IOWriterSync.ts:147
writeInt32(
value
):void
写 32 位有符号整数
• value: number
void
common/io/IOWriterSync.ts:159
writeInt64(
value
):void
写 64 位有符号整数
• value: bigint
void
common/io/IOWriterSync.ts:171
writeInt8(
value
):void
写 8 位有符号整数
• value: number
void
common/io/IOWriterSync.ts:135
writeString(
str
):number
写一个字符串
• str: string
number
common/io/IOWriterSync.ts:264
writeUint16(
value
):void
读取 16 位无符号整数
• value: number
void
common/io/IOWriterSync.ts:75
writeUint24(
value
):void
写 24 位无符号整数
• value: number
void
common/io/IOWriterSync.ts:87
writeUint32(
value
):void
写 32 位无符号整数
• value: number
void
common/io/IOWriterSync.ts:109
writeUint64(
value
):void
写 64 位无符号整数
• value: bigint
void
common/io/IOWriterSync.ts:121
writeUint8(
value
):void
写 8 位无符号整数
• value: number
void
BytesWriterSync.writeUint8
common/io/IOWriterSync.ts:63