MCPcopy Create free account
hub / github.com/apache/trafficserver / huffman_encode_append

Function huffman_encode_append

src/proxy/hdrs/HuffmanCodec.cc:434–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434uint8_t *
435huffman_encode_append(uint8_t *dst, uint32_t src, int n = 0)
436{
437 for (int j = 3; j >= n; --j) {
438 *dst++ = ((src >> (8 * j)) & 255);
439 }
440 return dst;
441}
442
443int64_t
444huffman_encode(uint8_t *dst_start, const uint8_t *src, uint32_t src_len)

Callers 1

huffman_encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected