typescript.IByteBuffer.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protocol Show documentation
Show all versions of protocol Show documentation
zfoo protocol is binary serialization framework for Java/C++/js/ts/C#/Go/Lua/GDScript/Python
The newest version!
interface IByteBuffer {
adjustPadding(predictionLength: number, beforeWriteIndex: number): void
compatibleRead(beforeReadIndex: number, length: number): boolean
getBuffer(): ArrayBuffer;
setWriteOffset(writeOffset: number): void
getWriteOffset(): number
setReadOffset(readOffset: number): void
getReadOffset(): number
getCapacity(): number
ensureCapacity(minCapacity: number): void
isReadable(): boolean
writeBytes(byteArray: ArrayBuffer): void
toBytes(): ArrayBuffer
writeBool(value: boolean): void
readBool(): boolean
writeByte(value: number): void
readByte(): number
writeShort(value: number): void
readShort(): number
writeRawInt(value: number): void
readRawInt(): number
writeInt(value: number): void
writeIntCount(value: number): number
readInt(): number
writeLong(value: number): void
readLong(): number
writeFloat(value: number): void
readFloat(): number
writeDouble(value: number): void
readDouble(): number
writeString(value: string): void
readString(): string
writePacket(packet: any, protocolId: number): void
readPacket(protocolId: number): any
writeBoolArray(array: Array | null): void
readBoolArray(): boolean[]
writeByteArray(array: Array | null): void
readByteArray(): number[]
writeShortArray(array: Array | null): void
readShortArray(): number[]
writeIntArray(array: Array | null): void
readIntArray(): number[]
writeLongArray(array: Array | null): void
readLongArray(): number[]
writeFloatArray(array: Array | null): void
readFloatArray(): number[]
writeDoubleArray(array: Array | null): void
readDoubleArray(): number[]
writeStringArray(array: Array | null): void
readStringArray(): string[]
writePacketArray(array: Array | null, protocolId: number): void
readPacketArray(protocolId: number): any
// ---------------------------------------------list-------------------------------------------
writeBoolList(list: Array | null): void
readBoolList(): boolean[]
writeByteList(list: Array | null): void
readByteList(): number[]
writeShortList(list: Array | null): void
readShortList(): number[]
writeIntList(list: Array | null): void
readIntList(): number[]
writeLongList(list: Array | null): void
readLongList(): number[]
writeFloatList(list: Array | null): void
readFloatList(): number[]
writeDoubleList(list: Array | null): void
readDoubleList(): number[]
writeStringList(list: Array | null): void
readStringList(): string[]
writePacketList(list: Array | null, protocolId: number): void
readPacketList(protocolId: number): any[]
// ---------------------------------------------set-------------------------------------------
writeBoolSet(set: Set | null): void
readBoolSet(): Set
writeByteSet(set: Set | null): void
readByteSet(): Set
writeShortSet(set: Set | null): void
readShortSet(): Set
writeIntSet(set: Set | null): void
readIntSet(): Set
writeLongSet(set: Set | null): void
readLongSet(): Set
writeFloatSet(set: Set | null): void
readFloatSet(): Set
writeDoubleSet(set: Set | null): void
readDoubleSet(): Set
writeStringSet(set: Set | null): void
readStringSet(): Set
writePacketSet(set: Set | null, protocolId: number): void
readPacketSet(protocolId: number): Set
// ---------------------------------------------map-------------------------------------------
writeIntIntMap(map: Map | null): void
readIntIntMap(): Map
writeIntLongMap(map: Map | null): void
readIntLongMap(): Map
writeIntStringMap(map: Map | null): void
readIntStringMap(): Map
writeIntPacketMap(map: Map | null, protocolId: number): void
readIntPacketMap(protocolId: number): Map
writeLongIntMap(map: Map | null): void
readLongIntMap(): Map
writeLongLongMap(map: Map | null): void
readLongLongMap(): Map
writeLongStringMap(map: Map | null): void
readLongStringMap(): Map
writeLongPacketMap(map: Map | null, protocolId: number): any
readLongPacketMap(protocolId: number): Map
writeStringIntMap(map: Map | null): void
readStringIntMap(): Map
writeStringLongMap(map: Map | null): void
readStringLongMap(): Map
writeStringStringMap(map: Map | null): void
readStringStringMap(): Map
writeStringPacketMap(map: Map | null, protocolId: number): void
readStringPacketMap(protocolId: number): Map
}
export default IByteBuffer;