Esempio n. 1
0
 public BytesLogger(MyBinarySerializerReader owner, string format, params object[] args)
 {
     _owner     = owner;
     _position  = owner._reader.Position;
     _msgFormat = format;
     _msgArgs   = args;
 }
Esempio n. 2
0
        public object Deserialize(Stream stream)
        {
            var reader = new StreamBinaryReader(stream, false, true);
            var ctx    = new MyBinarySerializerReader(reader);
            var obj    = ctx.ReadInstance();

            _lastLog = ctx.GetDebugLog();
            return(obj);
        }