public byte[] Serialize(WireMessage[] messages) { using (var stream = new ChunkedStream()) { SerializeInternal(messages, stream); return(stream.ToArray()); } }