Lines Matching defs:cooked
338 journal_pos_decode(journal_rawpos_t *raw, journal_pos_t *cooked) {
339 cooked->serial = decode_uint32(raw->serial);
340 cooked->offset = decode_uint32(raw->offset);
344 journal_pos_encode(journal_rawpos_t *raw, journal_pos_t *cooked) {
345 encode_uint32(cooked->serial, raw->serial);
346 encode_uint32(cooked->offset, raw->offset);
350 journal_header_decode(journal_rawheader_t *raw, journal_header_t *cooked) {
351 INSIST(sizeof(cooked->format) == sizeof(raw->h.format));
352 memmove(cooked->format, raw->h.format, sizeof(cooked->format));
353 journal_pos_decode(&raw->h.begin, &cooked->begin);
354 journal_pos_decode(&raw->h.end, &cooked->end);
355 cooked->index_size = decode_uint32(raw->h.index_size);
359 journal_header_encode(journal_header_t *cooked, journal_rawheader_t *raw) {
360 INSIST(sizeof(cooked->format) == sizeof(raw->h.format));
362 memmove(raw->h.format, cooked->format, sizeof(raw->h.format));
363 journal_pos_encode(&raw->h.begin, &cooked->begin);
364 journal_pos_encode(&raw->h.end, &cooked->end);
365 encode_uint32(cooked->index_size, raw->h.index_size);
610 * allocated buffer and then convert it into a cooked index.