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