public static byte[] SerializeToBytes (ReplyWriteChunk instance) { using (MemoryStream ms = new MemoryStream()) { Serialize (ms, instance); return ms.ToArray (); } }
public static void Serialize (Stream stream, ReplyWriteChunk instance) { }
public static ReplyWriteChunk Deserialize (Stream stream) { ReplyWriteChunk instance = new ReplyWriteChunk (); Deserialize (stream, instance); return instance; }