Lines Matching refs:cooked
342 journal_pos_decode(journal_rawpos_t *raw, journal_pos_t *cooked) {
343 cooked->serial = decode_uint32(raw->serial);
344 cooked->offset = decode_uint32(raw->offset);
348 journal_pos_encode(journal_rawpos_t *raw, journal_pos_t *cooked) {
349 encode_uint32(cooked->serial, raw->serial);
350 encode_uint32(cooked->offset, raw->offset);
354 journal_header_decode(journal_rawheader_t *raw, journal_header_t *cooked) {
355 INSIST(sizeof(cooked->format) == sizeof(raw->h.format));
356 memmove(cooked->format, raw->h.format, sizeof(cooked->format));
357 journal_pos_decode(&raw->h.begin, &cooked->begin);
358 journal_pos_decode(&raw->h.end, &cooked->end);
359 cooked->index_size = decode_uint32(raw->h.index_size);
360 cooked->sourceserial = decode_uint32(raw->h.sourceserial);
361 cooked->serialset = ISC_TF(raw->h.flags & JOURNAL_SERIALSET);
365 journal_header_encode(journal_header_t *cooked, journal_rawheader_t *raw) {
368 INSIST(sizeof(cooked->format) == sizeof(raw->h.format));
370 memmove(raw->h.format, cooked->format, sizeof(raw->h.format));
371 journal_pos_encode(&raw->h.begin, &cooked->begin);
372 journal_pos_encode(&raw->h.end, &cooked->end);
373 encode_uint32(cooked->index_size, raw->h.index_size);
374 encode_uint32(cooked->sourceserial, raw->h.sourceserial);
375 if (cooked->serialset)
623 * allocated buffer and then convert it into a cooked index.