public static int ReadLength(Stream stream) { return((int)VarInt.ReadUInt32(stream)); }
public static void WriteLength(Stream stream, int lenght) { VarInt.WriteUInt32(stream, (uint)lenght); }
private void WriteSignedVarInt(int value, Stream stream) { VarInt.WriteSInt32(stream, value); }
private int ReadSignedVarInt(Stream buffer) { return(VarInt.ReadSInt32(buffer)); }
public override void WriteTo(BinaryWriter stream) { VarInt.WriteSInt32(stream.BaseStream, Value); }
public override void FromStream(BinaryReader reader) { Value = VarInt.ReadSInt32(reader.BaseStream); }