Exemplo n.º 1
0
        public static PacketHead Unpacking(IReadStream readStream)
        {
            var packetHead = new PacketHead();

            packetHead.FromBytes(readStream);
            return(packetHead);
        }
Exemplo n.º 2
0
        //private readonly static Logger Logger = LogManager.GetLogger<DataPack>(LogType.Low);

        public static void ToBytes(PacketHead packetHead, IWriteStream writeSteam)
        {
            packetHead.ToBytes(writeSteam);
        }