Lines Matching refs:length
26 size_t offset = 0, length = 0; in pack_byte_string() local
36 length = 1; in pack_byte_string()
41 length = 2; in pack_byte_string()
46 length = 4; in pack_byte_string()
51 length = va_arg(args, u32); in pack_byte_string()
59 if (offset + length > size) { in pack_byte_string()
75 memcpy(str + offset, data, length); in pack_byte_string()
87 size_t offset = 0, length = 0; in unpack_byte_string() local
98 length = 1; in unpack_byte_string()
103 length = 2; in unpack_byte_string()
108 length = 4; in unpack_byte_string()
113 length = va_arg(args, u32); in unpack_byte_string()
121 if (offset + length > size) { in unpack_byte_string()
124 size, offset, length); in unpack_byte_string()
139 memcpy(ptr8, str + offset, length); in unpack_byte_string()