Open Philippe91 opened 1 year ago
1) const static uint8_t lenbits = FLAGLEN;
const static uint8_t lenbits = FLAGLEN;
should be:
const static uint8_t lenbits = (7 - FLAGLEN);
2)
uint64_t remaining_length = unit.length >> DeltaHeadUnit::lenbits; write_varint(buffer, remaining_length);
if (uint64_t remaining_length = unit.length >> DeltaHeadUnit::lenbits) write_varint(buffer, remaining_length);
3)
#ifdef _WIN32 output_fd = open(cvalue, O_RDWR | O_TRUNC | O_CREAT); #else
should be (else eof added!):
#ifdef _WIN32 output_fd = open(cvalue, O_RDWR | O_TRUNC | O_CREAT | O_BINARY); #else
1)
const static uint8_t lenbits = FLAGLEN;
should be:
const static uint8_t lenbits = (7 - FLAGLEN);
2)
should be:
3)
should be (else eof added!):