diff options
| author | Arisotura <thetotalworm@gmail.com> | 2020-06-21 01:43:32 +0200 |
|---|---|---|
| committer | Arisotura <thetotalworm@gmail.com> | 2020-06-21 01:43:32 +0200 |
| commit | b31e049b3068683f3eac4a2deba4686aa3471a67 (patch) | |
| tree | 8a1302937ce7fc7b150fae0ce4dbedb68e0d83a3 /src/FIFO.h | |
| parent | 91ff63a19435833034f800267fab4ea6af675414 (diff) | |
wifi fixes and shit. getting there, somewhat.
Diffstat (limited to 'src/FIFO.h')
| -rw-r--r-- | src/FIFO.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -102,6 +102,8 @@ public: bool IsEmpty() { return NumOccupied == 0; } bool IsFull() { return NumOccupied >= NumEntries; } + bool CanFit(u32 num) { return ((NumOccupied + num) <= NumEntries); } + private: u32 NumEntries; T* Entries; |