Contains standard libraries for ZenCode.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CompactDataOutput.zs 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. public interface CompactDataOutput {
  2. writeBool(value as bool) as void;
  3. writeByte(value as byte) as void;
  4. writeSByte(value as sbyte) as void;
  5. writeShort(value as short) as void;
  6. writeUShort(value as ushort) as void;
  7. writeInt(value as int) as void;
  8. writeUInt(value as uint) as void;
  9. writeLong(value as long) as void;
  10. writeULong(value as ulong) as void;
  11. writeVarInt(value as int) as void;
  12. writeVarUInt(value as uint) as void;
  13. writeVarLong(value as long) as void;
  14. writeVarULong(value as ulong) as void;
  15. writeFloat(value as float) as void;
  16. writeDouble(value as double) as void;
  17. writeChar(value as char) as void;
  18. writeString(value as string) as void;
  19. writeBytes(data as byte[]) as void;
  20. writeBytes(data as byte[], offset as usize, length as usize) as void;
  21. writeRawBytes(value as byte[]) as void;
  22. writeRawBytes(value as byte[], offset as usize, length as usize) as void;
  23. writeBoolArray(data as bool[]) as void;
  24. writeByteArray(data as byte[]) as void;
  25. writeSByteArray(data as sbyte[]) as void;
  26. writeShortArray(data as short[]) as void;
  27. writeShortArrayRaw(data as short[]) as void;
  28. writeUShortArray(data as short[]) as void;
  29. writeUShortArrayRaw(data as short[]) as void;
  30. writeVarIntArray(data as int[]) as void;
  31. writeVarIntArrayRaw(data as int[]) as void;
  32. writeVarUIntArray(data as uint[]) as void;
  33. writeVarUIntArrayRaw(data as uint[]) as void;
  34. writeIntArray(data as int[]) as void;
  35. writeIntArrayRaw(data as int[]) as void;
  36. writeUIntArray(data as uint[]) as void;
  37. writeUIntArrayRaw(data as uint[]) as void;
  38. writeVarLongArray(data as long[]) as void;
  39. writeVarLongArrayRaw(data as long[]) as void;
  40. writeVarULongArray(data as ulong[]) as void;
  41. writeVarULongArrayRaw(data as ulong[]) as void;
  42. writeLongArray(data as long[]) as void;
  43. writeLongArrayRaw(data as long[]) as void;
  44. writeULongArray(data as long[]) as void;
  45. writeULongArrayRaw(data as long[]) as void;
  46. writeFloatArray(data as float[]) as void;
  47. writeFloatArrayRaw(data as float[]) as void;
  48. writeDoubleArray(data as double[]) as void;
  49. writeDoubleArrayRaw(data as double[]) as void;
  50. writeStringArray(data as string[]) as void;
  51. writeStringArrayRaw(data as string[]) as void;
  52. flush() as void;
  53. ~this;
  54. }