public static byte[] Serialize(TAbstractBase s) { TMemoryBuffer t = new TMemoryBuffer(); TBinaryProtocol p = new TBinaryProtocol(t); s.Write(p); return t.GetBuffer(); }
public static byte[] Serialize(TAbstractBase s) { var t = new TMemoryBuffer(); var p = new TCompactProtocol(t); s.Write(p); return(t.GetBuffer()); }
public static byte[] Serialize(TBase s) { var t = new TMemoryBuffer(); var p = new TBinaryProtocol(t); s.Write(p); return(t.GetBuffer()); }
public static byte[] Serialize(TAbstractBase s) { TMemoryBuffer tMemoryBuffer = new TMemoryBuffer(); s.Write(new TBinaryProtocol(tMemoryBuffer)); return tMemoryBuffer.GetBuffer(); }