Exemple #1
0
 public PySubStream(byte[] data)
     : base(PyObjectType.SubStream)
 {
     RawData       = data;
     DataUnmarshal = new Unmarshal();
     Data          = DataUnmarshal.Process(data);
 }
Exemple #2
0
        public override void Decode(Unmarshal context, MarshalOpcode op, BinaryReader source)
        {
            uint len = source.ReadSizeEx();

            RawData       = source.ReadBytes((int)len);
            DataUnmarshal = new Unmarshal();
            Data          = DataUnmarshal.Process(RawData);
        }
Exemple #3
0
        public static T Process <T>(byte[] data) where T : class
        {
            var un = new Unmarshal();

            return(un.Process(data) as T);
        }