Lines Matching refs:length
49 crc = (zip_uint32_t)crc32(crc, s->raw, s->length); in _zip_string_crc32()
61 if (a->length != b->length) in _zip_string_equal()
66 return (memcmp(a->raw, b->raw, a->length) == 0); in _zip_string_equal()
102 if ((string->converted=_zip_cp437_to_utf8(string->raw, string->length, in _zip_string_get()
113 *lenp = string->length; in _zip_string_get()
124 return s->length; in _zip_string_length()
129 _zip_string_new(const zip_uint8_t *raw, zip_uint16_t length, zip_flags_t flags, zip_error_t *error) in _zip_string_new() argument
134 if (length == 0) in _zip_string_new()
157 if ((s->raw=(zip_uint8_t *)malloc((size_t)(length+1))) == NULL) { in _zip_string_new()
162 memcpy(s->raw, raw, length); in _zip_string_new()
163 s->raw[length] = '\0'; in _zip_string_new()
164 s->length = length; in _zip_string_new()
187 return _zip_write(za, s->raw, s->length); in _zip_string_write()