LOG_HEADER_FLAG_BUFFER_WRAPAROUND
wrapped = cd->hdr_eobyte & LOG_HEADER_FLAG_BUFFER_WRAPAROUND;
((a) & ~(LOG_HEADER_FLAG_BUFFER_WRAPAROUND))