|
|
|
|
815
|
// Maybe we could coalesce the next block with this block. Let's try to do it!
|
815
|
// Maybe we could coalesce the next block with this block. Let's try to do it!
|
816
|
uint16_t inext = i + 3 + blen;
|
816
|
uint16_t inext = i + 3 + blen;
|
817
|
if (inext <= (PageSize - 4) &&
|
817
|
if (inext <= (PageSize - 4) &&
|
818
|
- (buffer[inext] | (uint16_t(buffer[inext + 1]) << 8)) == (baddr + blen + 1)) {
|
|
|
|
|
818
|
+ (buffer[inext] | uint16_t(buffer[inext + 1] << 8)) == (baddr + blen + 1)) {
|
819
|
// YES! ... we can coalesce blocks! . Do it!
|
819
|
// YES! ... we can coalesce blocks! . Do it!
|
820
|
|
820
|
|
821
|
// Adjust this block header to include the next one
|
821
|
// Adjust this block header to include the next one
|