public override void Read(ModUpdaterNetworkStream s) { Type = (ImageType)((byte)s.ReadNetworkByte()); //Stupid ReadNetworkByte(). It's in NetworkStream and thus pretty much out of my control. ShowOn = s.ReadString(); Image = s.ReadBytes(); }
public override void Read(ModUpdaterNetworkStream s) { Index = s.ReadInt(); Part = s.ReadBytes(); s.WriteByte(0); // Just to make this send at the user's upload speed and not give a false number. }
public override void Read(ModUpdaterNetworkStream s) { Encrypt = s.ReadBoolean(); EncryptionKey = s.ReadBytes(); EncryptionIV = s.ReadBytes(); }