Ejemplo n.º 1
0
        private static byte[] readStream(Stream ms)
        {
            int length = readInt(ms);

            return(PacketBase.ReadByteArray(ms, length - 4));
        }
Ejemplo n.º 2
0
 void write(FileStream fs, ParamCode code, byte[] buffer)
 {
     PacketBase.WriteBytes(fs, buffer.Length + 4);
     PacketBase.WriteBytes(fs, (int)code);
     PacketBase.WriteBytes(fs, buffer);
 }