Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public static int CalcStartSize(EncodedVia via, EncodedContentType contentType)
 {
     return((int)via.EncodedBytes.Length + (int)contentType.EncodedBytes.Length);
 }