All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dart.IByteBuffer.dart Maven / Gradle / Ivy

Go to download

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 array, int protocolId);

  List readPacketArray(int protocolId);

  void writeBoolList(List list);

  List readBoolList();

  void writeByteList(List list);

  List readByteList();

  void writeShortList(List list);

  List readShortList();

  void writeIntList(List list);

  List readIntList();

  void writeLongList(List list);

  List readLongList();

  void writeFloatList(List list);

  List readFloatList();

  void writeDoubleList(List list);

  List readDoubleList();

  void writeStringList(List list);

  List readStringList();

  void writePacketList(List list, int protocolId);

  List readPacketList(int protocolId);

  void writeBoolSet(Set set);

  Set readBoolSet();

  void writeByteSet(Set set);

  Set readByteSet();

  void writeShortSet(Set set);

  Set readShortSet();

  void writeIntSet(Set set);

  Set readIntSet();

  void writeLongSet(Set set);

  Set readLongSet();

  void writeFloatSet(Set set);

  Set readFloatSet();

  void writeDoubleSet(Set set);

  Set readDoubleSet();

  void writeStringSet(Set set);

  Set readStringSet();

  void writePacketSet(Setset, int protocolId);

  Set readPacketSet(int protocolId);

  void writeIntIntMap(Map map);

  Map readIntIntMap();

  void writeIntLongMap(Map map);

  Map readIntLongMap();

  void writeIntStringMap(Map map);

  Map readIntStringMap();

  void writeIntPacketMap(Map map, int protocolId);

  Map readIntPacketMap(int protocolId);

  void writeLongIntMap(Map map);

  Map readLongIntMap();

  void writeLongLongMap(Map map);

  Map readLongLongMap();

  void writeLongStringMap(Map map);

  Map readLongStringMap();

  void writeLongPacketMap(Map map, int protocolId);

  Map readLongPacketMap(int protocolId);

  void writeStringIntMap(Map map);

  Map readStringIntMap();

  void writeStringLongMap(Map map);

  Map readStringLongMap();

  void writeStringStringMap(Map map);

  Map readStringStringMap();

  void writeStringPacketMap(Map map, int protocolId);

  Map readStringPacketMap(int protocolId);
}