public PySubStream(byte[] data) : base(PyObjectType.SubStream) { RawData = data; DataUnmarshal = new Unmarshal(); Data = DataUnmarshal.Process(data); }
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); }
public static T Process <T>(byte[] data) where T : class { var un = new Unmarshal(); return(un.Process(data) as T); }