Exemple #1
0
        public static ProtocolPacket Construct(byte[] packet, int start, int length)
        {
            MemoryStream stream = new MemoryStream(packet, start, length);
            BinaryReader reader = new BinaryReader(stream);

            return(ProtocolPacket.ReadRequest(reader));
        }
Exemple #2
0
 public static ProtocolPacket ReadRequest(BinaryReader reader)
 {
     return(ProtocolPacket.ReadRequest(reader, ProtocolHeader.ReadHeader(reader)));
 }