public static void EncodeStart(byte[] buffer, int offset, EncodedVia via, EncodedContentType contentType)
 {
     Buffer.BlockCopy(via.EncodedBytes, 0, buffer, offset, (int)via.EncodedBytes.Length);
     Buffer.BlockCopy(contentType.EncodedBytes, 0, buffer, offset + (int)via.EncodedBytes.Length, (int)contentType.EncodedBytes.Length);
 }
 public static int CalcStartSize(EncodedVia via, EncodedContentType contentType)
 {
     return((int)via.EncodedBytes.Length + (int)contentType.EncodedBytes.Length);
 }