Lines Matching refs:buffer

77 	uint32_t buffer[6];  in read_header()  local
79 memcpy(&buffer, *tzf, sizeof(buffer)); in read_header()
80 tz->bit32.ttisgmtcnt = timelib_conv_int(buffer[0]); in read_header()
81 tz->bit32.ttisstdcnt = timelib_conv_int(buffer[1]); in read_header()
82 tz->bit32.leapcnt = timelib_conv_int(buffer[2]); in read_header()
83 tz->bit32.timecnt = timelib_conv_int(buffer[3]); in read_header()
84 tz->bit32.typecnt = timelib_conv_int(buffer[4]); in read_header()
85 tz->bit32.charcnt = timelib_conv_int(buffer[5]); in read_header()
86 *tzf += sizeof(buffer); in read_header()
99 int32_t *buffer = NULL; in read_transistions() local
104 buffer = (int32_t*) malloc(tz->bit32.timecnt * sizeof(int32_t)); in read_transistions()
105 if (!buffer) { in read_transistions()
108 memcpy(buffer, *tzf, sizeof(int32_t) * tz->bit32.timecnt); in read_transistions()
111 buffer[i] = timelib_conv_int(buffer[i]); in read_transistions()
116 free(buffer); in read_transistions()
123 tz->trans = buffer; in read_transistions()
144 unsigned char *buffer; in read_types() local
148 buffer = (unsigned char*) malloc(tz->bit32.typecnt * sizeof(unsigned char) * 6); in read_types()
149 if (!buffer) { in read_types()
152 memcpy(buffer, *tzf, sizeof(unsigned char) * 6 * tz->bit32.typecnt); in read_types()
157 free(buffer); in read_types()
163 …tz->type[i].offset = (buffer[j] * 16777216) + (buffer[j + 1] * 65536) + (buffer[j + 2] * 256) + bu… in read_types()
164 tz->type[i].isdst = buffer[j + 4]; in read_types()
165 tz->type[i].abbr_idx = buffer[j + 5]; in read_types()
167 free(buffer); in read_types()
197 buffer = (unsigned char*) malloc(tz->bit32.ttisstdcnt * sizeof(unsigned char)); in read_types()
198 if (!buffer) { in read_types()
201 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->bit32.ttisstdcnt); in read_types()
205 tz->type[i].isstdcnt = buffer[i]; in read_types()
207 free(buffer); in read_types()
211 buffer = (unsigned char*) malloc(tz->bit32.ttisgmtcnt * sizeof(unsigned char)); in read_types()
212 if (!buffer) { in read_types()
215 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->bit32.ttisgmtcnt); in read_types()
219 tz->type[i].isgmtcnt = buffer[i]; in read_types()
221 free(buffer); in read_types()
239 uint32_t buffer[3]; in read_location() local
242 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
243 tz->location.latitude = timelib_conv_int(buffer[0]); in read_location()
245 tz->location.longitude = timelib_conv_int(buffer[1]); in read_location()
247 comments_len = timelib_conv_int(buffer[2]); in read_location()
248 *tzf += sizeof(buffer); in read_location()
362 uint32_t buffer[6]; in read_64bit_header() local
364 memcpy(&buffer, *tzf, sizeof(buffer)); in read_64bit_header()
365 tz->bit64.ttisgmtcnt = timelib_conv_int(buffer[0]); in read_64bit_header()
366 tz->bit64.ttisstdcnt = timelib_conv_int(buffer[1]); in read_64bit_header()
367 tz->bit64.leapcnt = timelib_conv_int(buffer[2]); in read_64bit_header()
368 tz->bit64.timecnt = timelib_conv_int(buffer[3]); in read_64bit_header()
369 tz->bit64.typecnt = timelib_conv_int(buffer[4]); in read_64bit_header()
370 tz->bit64.charcnt = timelib_conv_int(buffer[5]); in read_64bit_header()
371 *tzf += sizeof(buffer); in read_64bit_header()