Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
SampleFolderIndex::Block Class Referencefinal
Inheritance diagram for SampleFolderIndex::Block:
Collaboration diagram for SampleFolderIndex::Block:

Public Member Functions

 Block (Folder &folder, uint32_t size)
bool mayBeStolen (void *thingNotToStealFrom) override
void steal (char const *errorCode) override
StealableQueue getAppropriateQueue () override
Entry * entries ()
char * name (uint16_t fromEnd)
Public Member Functions inherited from BidirectionalLinkedListNode
void remove ()
void insertOtherNodeBefore (BidirectionalLinkedListNode *otherNode)
bool isLast ()

Public Attributes

Folder * folder
Block * next = nullptr
uint32_t size
 Not Cluster::size, which changes when a card with other formatting goes in.
int32_t numEntries = 0
Public Attributes inherited from Stealable
uint32_t lastTraversalNo = 0xFFFFFFFF
Public Attributes inherited from BidirectionalLinkedListNode
BidirectionalLinkedListNode * next
BidirectionalLinkedListNode ** prevPointer
BidirectionalLinkedList * list

Detailed Description

Part of a Folder's list of files, in exactly as much memory as a Cluster: this object, then its Entries, then free space, then the Entries' names, which are filled in from the end of the block back

Member Function Documentation

◆ getAppropriateQueue()

StealableQueue SampleFolderIndex::Block::getAppropriateQueue ( )
inlineoverridevirtual

With the sample data of the song being loaded, not ahead of it with unused data. A Block is just what a Cluster being loaded needs, so it would otherwise be taken first - often by the very song whose samples it's finding, which then has to read the folder again, or search it for each file.

Implements Stealable.

◆ mayBeStolen()

bool SampleFolderIndex::Block::mayBeStolen ( void * thingNotToStealFrom)
inlineoverridevirtual

Not while its folder's being read. Only once that's complete does indexFolder() make its Blocks stealable, so any way out of indexFolder() that forgets to leaves them merely unstealable, never stolen half-built.

Implements Stealable.

◆ steal()

void SampleFolderIndex::Block::steal ( char const * errorCode)
inlineoverridevirtual

Implements Stealable.


The documentation for this class was generated from the following file:
  • src/deluge/storage/audio/sample_folder_index.cpp