Lines Matching refs:buff
104 do_buff_decode(uint8_t *buff, size_t len, in do_buff_decode() argument
192 bits = buff[ind++]; in do_buff_decode()
220 ARG_PUT(buff[ind]); in do_buff_decode()
225 ARG_PUT(buff[ind] << 8 | buff[ind + 1]); in do_buff_decode()
230 ARG_PUT(buff[ind] << 16 | in do_buff_decode()
231 buff[ind + 1] << 8 | buff[ind + 2]); in do_buff_decode()
236 ARG_PUT(buff[ind] << 24 | buff[ind + 1] << 16 | in do_buff_decode()
237 buff[ind + 2] << 8 | buff[ind + 3]); in do_buff_decode()
262 &buff[ind], width, field_name); in do_buff_decode()
266 bcopy(&buff[ind], dest, width); in do_buff_decode()
547 do_encode(u_char *buff, size_t vec_max, size_t *used, in do_encode() argument
601 buff[ind++] = val; in do_encode()
609 buff[ind++] = val; in do_encode()
617 buff[ind++] = value; in do_encode()
622 buff[ind++] = value >> 8; in do_encode()
623 buff[ind++] = value; in do_encode()
629 buff[ind++] = value >> 16; in do_encode()
630 buff[ind++] = value >> 8; in do_encode()
631 buff[ind++] = value; in do_encode()
637 buff[ind++] = value >> 24; in do_encode()
638 buff[ind++] = value >> 16; in do_encode()
639 buff[ind++] = value >> 8; in do_encode()
640 buff[ind++] = value; in do_encode()
654 buff[ind++] = val; in do_encode()
702 buff_decode(uint8_t *buff, size_t len, const char *fmt, ...) in buff_decode() argument
709 retval = do_buff_decode(buff, len, NULL, NULL, fmt, &ap); in buff_decode()
717 buff_decode_visit(uint8_t *buff, size_t len, const char *fmt, in buff_decode_visit() argument
729 return (do_buff_decode(buff, len, arg_put, puthook, fmt, NULL)); in buff_decode_visit()
832 buff_encode_visit(uint8_t *buff, size_t len, const char *fmt, in buff_encode_visit() argument
843 return (do_encode(buff, len, NULL, arg_get, gethook, fmt, NULL)); in buff_encode_visit()