![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.28
|
#include <sample_folder_index.h>
Public Member Functions | |
| constexpr | Space (size_t start, size_t blockSize) |
| For a block of blockSize bytes whose first start bytes are taken. | |
| constexpr std::optional< uint16_t > | take (size_t entrySize, size_t namesSize) |
Private Attributes | |
| size_t | entriesEnd_ |
| size_t | namesStart_ |
| size_t | blockSize_ |
The room left in a block. Its files' Entries fill it from the front and their names from the back, so it holds as many files as their names leave room for.
|
inlineconstexpr |
Takes room for one more Entry and for namesSize bytes of names, if there's that much left. Returns where the names go, as a distance back from the end of the block, which always fits in 16 bits.