Пример #1
0
        internal void Serialize(MemoryStream stream, object data)
        {
            MemoryDataBuffer buffer = new MemoryDataBuffer(stream);
            MProto           proto  = new MBinaryProto(buffer);

            Write(proto, data);
        }
Пример #2
0
        internal T Deserialize <T>(MemoryStream ms)
        {
            MemoryDataBuffer buffer = new MemoryDataBuffer(ms);
            MProto           proto  = new MBinaryProto(buffer);
            object           res    = Read(proto, typeof(T));

            return((T)res);
        }
Пример #3
0
        internal object Deserialize(MemoryStream ms, Mio meta)
        {
            MemoryDataBuffer buffer = new MemoryDataBuffer(ms);
            MProto           proto  = new MBinaryProto(buffer);
            object           res    = Read(proto, meta);

            return(res);
        }
Пример #4
0
 //  interfaces
 internal void Serialize(MemoryStream stream, Mio meta, object data)
 {
     MemoryDataBuffer buffer = new MemoryDataBuffer(stream);
     MProto proto = new MBinaryProto(buffer);
     Write(proto, meta, data);
 }
Пример #5
0
 internal object Deserialize(MemoryStream ms, Mio meta)
 {
     MemoryDataBuffer buffer = new MemoryDataBuffer(ms);
     MProto proto = new MBinaryProto(buffer);
     object res = Read(proto, meta);
     return res;
 }