Lines Matching refs:buffer
168 uint32_t buffer[6]; in read_32bit_header() local
170 memcpy(&buffer, *tzf, sizeof(buffer)); in read_32bit_header()
171 tz->_bit32.ttisgmtcnt = timelib_conv_int_unsigned(buffer[0]); in read_32bit_header()
172 tz->_bit32.ttisstdcnt = timelib_conv_int_unsigned(buffer[1]); in read_32bit_header()
173 tz->_bit32.leapcnt = timelib_conv_int_unsigned(buffer[2]); in read_32bit_header()
174 tz->_bit32.timecnt = timelib_conv_int_unsigned(buffer[3]); in read_32bit_header()
175 tz->_bit32.typecnt = timelib_conv_int_unsigned(buffer[4]); in read_32bit_header()
176 tz->_bit32.charcnt = timelib_conv_int_unsigned(buffer[5]); in read_32bit_header()
178 *tzf += sizeof(buffer); in read_32bit_header()
199 int64_t *buffer = NULL; in read_64bit_transitions() local
204 buffer = (int64_t*) timelib_malloc(tz->bit64.timecnt * sizeof(int64_t)); in read_64bit_transitions()
205 if (!buffer) { in read_64bit_transitions()
208 memcpy(buffer, *tzf, sizeof(int64_t) * tz->bit64.timecnt); in read_64bit_transitions()
211 buffer[i] = timelib_conv_int64_signed(buffer[i]); in read_64bit_transitions()
213 if (i > 0 && !(buffer[i] > buffer[i - 1])) { in read_64bit_transitions()
220 timelib_free(buffer); in read_64bit_transitions()
227 tz->trans = buffer; in read_64bit_transitions()
243 unsigned char *buffer; in read_64bit_types() local
248 buffer = (unsigned char*) timelib_malloc(tz->bit64.typecnt * sizeof(unsigned char) * 6); in read_64bit_types()
249 if (!buffer) { in read_64bit_types()
252 memcpy(buffer, *tzf, sizeof(unsigned char) * 6 * tz->bit64.typecnt); in read_64bit_types()
259 timelib_free(buffer); in read_64bit_types()
266 …et += (int32_t) (((uint32_t) buffer[j]) << 24) + (buffer[j + 1] << 16) + (buffer[j + 2] << 8) + tz… in read_64bit_types()
267 tz->type[i].isdst = buffer[j + 4]; in read_64bit_types()
268 tz->type[i].abbr_idx = buffer[j + 5]; in read_64bit_types()
270 timelib_free(buffer); in read_64bit_types()
303 buffer = (unsigned char*) timelib_malloc(tz->bit64.ttisstdcnt * sizeof(unsigned char)); in read_64bit_types()
304 if (!buffer) { in read_64bit_types()
307 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->bit64.ttisstdcnt); in read_64bit_types()
311 tz->type[i].isstdcnt = buffer[i]; in read_64bit_types()
313 timelib_free(buffer); in read_64bit_types()
318 buffer = (unsigned char*) timelib_malloc(tz->bit64.ttisgmtcnt * sizeof(unsigned char)); in read_64bit_types()
319 if (!buffer) { in read_64bit_types()
322 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->bit64.ttisgmtcnt); in read_64bit_types()
326 tz->type[i].isgmtcnt = buffer[i]; in read_64bit_types()
328 timelib_free(buffer); in read_64bit_types()
448 uint32_t buffer[3]; in read_location() local
451 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
452 tz->location.latitude = timelib_conv_int_unsigned(buffer[0]); in read_location()
454 tz->location.longitude = timelib_conv_int_unsigned(buffer[1]); in read_location()
456 comments_len = timelib_conv_int_unsigned(buffer[2]); in read_location()
457 *tzf += sizeof(buffer); in read_location()
641 uint32_t buffer[6]; in read_64bit_header() local
643 memcpy(&buffer, *tzf, sizeof(buffer)); in read_64bit_header()
644 tz->bit64.ttisgmtcnt = timelib_conv_int_unsigned(buffer[0]); in read_64bit_header()
645 tz->bit64.ttisstdcnt = timelib_conv_int_unsigned(buffer[1]); in read_64bit_header()
646 tz->bit64.leapcnt = timelib_conv_int_unsigned(buffer[2]); in read_64bit_header()
647 tz->bit64.timecnt = timelib_conv_int_unsigned(buffer[3]); in read_64bit_header()
648 tz->bit64.typecnt = timelib_conv_int_unsigned(buffer[4]); in read_64bit_header()
649 tz->bit64.charcnt = timelib_conv_int_unsigned(buffer[5]); in read_64bit_header()
650 *tzf += sizeof(buffer); in read_64bit_header()