dart.IByteBuffer.dart 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!
import 'dart:typed_data';
abstract class IByteBuffer {
void adjustPadding(int predictionLength, int beforeWriteIndex);
bool compatibleRead(int beforeReadIndex, int length);
Int8List getBuffer();
int getWriteOffset();
void setWriteOffset(int writeIndex);
int getReadOffset();
void setReadOffset(int readIndex);
bool isReadable();
int getCapacity();
void ensureCapacity(int capacity);
void writeBytes(Int8List bytes);
Int8List readBytes(int length);
void writeBool(bool value);
bool readBool();
void writeByte(int value);
int readByte();
void writeShort(int value);
int readShort();
int writeIntCount(int value);
void writeRawInt(int value);
int readRawInt();
void writeInt(int value);
int writeVarInt(int value);
int readInt();
void writeLong(int value);
int readLong();
void writeFloat(double value);
double readFloat();
void writeDouble(double value);
double readDouble();
void writeString(String value);
String readString();
void writePacket(Object? packet, int protocolId);
Object readPacket(int protocolId);
void writeBoolArray(List array);
List readBoolArray();
void writeByteArray(List array);
List readByteArray();
void writeShortArray(List array);
List readShortArray();
void writeIntArray(List array);
List readIntArray();
void writeLongArray(List array);
List readLongArray();
void writeFloatArray(List array);
List readFloatArray();
void writeDoubleArray(List array);
List readDoubleArray();
void writeStringArray(List array);
List readStringArray();
void writePacketArray(List