예제 #1
0
 public static int EncodeInteger(Span <byte> buffer, int value, byte prefix, byte prefixMask)
 {
     return(HPackEncoder.EncodeInteger(value, prefix, prefixMask, buffer));
 }
예제 #2
0
 public static int EncodeString(Span <byte> buffer, string value, Encoding valueEncoding, bool huffmanCoded = false)
 {
     return(HPackEncoder.EncodeString(value, valueEncoding, buffer, huffmanCoded));
 }