Account
| ArmsysApi 0.12.18 |
BFifoChar Class Reference
#include <BHttpServer.h>
Inheritance diagram for BFifoChar:
Public Member Functions | |
| BFifoChar (BUInt fifoSize) | |
| Bool | find (const char *pattern, BUInt &pos) |
| Search fifo for string. More... | |
| Bool | readInt (int &value) |
| BUInt32 | getBUInt32 (BUInt pos) |
| void | putBUInt32 (BUInt pos, BUInt32 v) |
| void | debugPrint (BUInt n=0) |
Public Member Functions inherited from BFifo< char > | |
| BFifo (BUInt size) | |
| ~BFifo () | |
| void | clear () |
| BUInt | size () |
| Returns fifo size. More... | |
| BError | resize (BUInt size) |
| Resize FIFO, clears it as well. More... | |
| BError | rebase () |
| Rebases fifo so read pointer is at zero moving memory as needed. More... | |
| BUInt | writeAvailable () |
| How many items that can be written. More... | |
| BUInt | writeAvailableChunk () |
| How many items that can be written in a chunk. More... | |
| BError | write (const char v) |
| Write a single item. More... | |
| BError | write (const char *data, BUInt num) |
| Write a set of items. Can only write a maximum of writeAvailableChunk() to save going beyond end of FIFO buffer. More... | |
| char * | writeData () |
| Returns a pointer to the data. More... | |
| char * | writeData (BUInt &num) |
| Returns a pointer to the data and how many can be written in a chunk. More... | |
| void | writeDone (BUInt num) |
| Indicates when write is complete. More... | |
| void | writeBackup (BUInt num) |
| Backup, remove num items at end of fifo. Careful, make sure read is not already happening. More... | |
| BUInt | readAvailable () |
| How many items are available to read. More... | |
| BUInt | readAvailableChunk () |
| How many items are available to read in a chunk. More... | |
| char | read () |
| Read one item. More... | |
| BError | read (char *data, BUInt num) |
| Read a set of items. More... | |
| BError | readPeak (char *data, BUInt num) |
| Read a set of items leaving them in the buffer. More... | |
| char * | readData () |
| Returns a pointer to the data. More... | |
| char * | readData (BUInt &num) |
| Returns a pointer to the data and how many can be read in a chunk. More... | |
| void | readDone (BUInt num) |
| char | readPos (BUInt pos) |
| Read item at given offset from current read position. More... | |
| void | writePos (BUInt pos, const char &v) |
| Write item at given offset from current read position. More... | |
| char & | operator[] (int pos) |
| Direct access to read samples in buffer. More... | |
Additional Inherited Members | |
Protected Attributes inherited from BFifo< char > | |
| BUInt | osize |
| The size of the FIFO. More... | |
| char * | odata |
| FIFO memory buffer. More... | |
| volatile BUInt | owritePos |
| The write pointer. More... | |
| volatile BUInt | oreadPos |
| The read pointer. More... | |
Constructor & Destructor Documentation
◆ BFifoChar()
| inline |
Member Function Documentation
◆ debugPrint()
| void BFifoChar::debugPrint | ( | BUInt | n = 0 | ) |
◆ find()
◆ getBUInt32()
◆ putBUInt32()
◆ readInt()
| inline |
The documentation for this class was generated from the following file:
Generated by
1.8.15 
Public Member Functions inherited from