Lines Matching refs:offset
37 uint16_t offset, uint8_t *src, uint16_t src_len) in buf_insert() argument
48 memmove(dst + offset + src_len, dst + offset, *dst_len - offset); in buf_insert()
51 memcpy(dst + offset, src, src_len); in buf_insert()
58 uint16_t *offset) in buf_read() argument
64 if (*offset + len > src_len) { in buf_read()
70 memcpy(dst, src + *offset, len); in buf_read()
73 *offset += len; in buf_read()
77 static inline int buf_skip(uint16_t len, uint8_t *src, uint16_t src_len, uint16_t *offset) in buf_skip() argument
79 return buf_read(NULL, len, src, src_len, offset); in buf_skip()
83 uint16_t *offset) in buf_read_u8() argument
85 return buf_read(value, sizeof(uint8_t), src, src_len, offset); in buf_read_u8()
89 uint16_t *offset) in buf_read_u16() argument
91 return buf_read((uint8_t *)value, sizeof(uint16_t), src, src_len, offset); in buf_read_u16()
95 uint16_t *offset) in buf_read_be16() argument
100 ret = buf_read(v16, sizeof(uint16_t), src, src_len, offset); in buf_read_be16()
107 uint16_t *offset) in buf_read_u32() argument
109 return buf_read((uint8_t *)value, sizeof(uint32_t), src, src_len, offset); in buf_read_u32()
113 uint16_t *offset) in buf_read_be32() argument
118 ret = buf_read(v32, sizeof(uint32_t), src, src_len, offset); in buf_read_be32()