示例#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));
 }