MCPcopy Create free account
hub / github.com/F-Stack/f-stack / getbyte

Function getbyte

freebsd/net/mppcd.c:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static uint32_t __inline
77getbyte(const uint8_t *buf, const uint32_t i, const uint32_t l)
78{
79 if (l == 8) {
80 return (buf[i]);
81 } else {
82 return ((((buf[i] << 8) | buf[i+1]) >> l) & 0xff);
83 }
84}
85
86static void __inline
87lamecopy(uint8_t *dst, uint8_t *src, uint32_t len)

Callers 1

MPPC_DecompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected