Check if a cell of given size fits in the current page
| 525 | |
| 526 | // Check if a cell of given size fits in the current page |
| 527 | static bool pb_cell_fits(PageBuilder *pb, int cell_len) { |
| 528 | // Cell pointer (2 bytes) + cell content |
| 529 | int available = pb->content_offset - pb->ptr_offset - CELL_PTR_SIZE; |
| 530 | return cell_len <= available; |
| 531 | } |
| 532 | |
| 533 | // Add a cell to the current leaf page. |
| 534 | // For table leaves: varint(payload_len) + varint(rowid) + payload |
no outgoing calls
no test coverage detected