internal void Serialize(MemoryStream stream, object data) { MemoryDataBuffer buffer = new MemoryDataBuffer(stream); MProto proto = new MBinaryProto(buffer); Write(proto, data); }
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); }
internal object Deserialize(MemoryStream ms, Mio meta) { MemoryDataBuffer buffer = new MemoryDataBuffer(ms); MProto proto = new MBinaryProto(buffer); object res = Read(proto, meta); return(res); }
// interfaces internal void Serialize(MemoryStream stream, Mio meta, object data) { MemoryDataBuffer buffer = new MemoryDataBuffer(stream); MProto proto = new MBinaryProto(buffer); Write(proto, meta, data); }
internal object Deserialize(MemoryStream ms, Mio meta) { MemoryDataBuffer buffer = new MemoryDataBuffer(ms); MProto proto = new MBinaryProto(buffer); object res = Read(proto, meta); return res; }