#include <Utils/C20Buffers.hpp>
 | 
| 
void  | reset () | 
|   | reset this buffer, set pos back to 0 
  | 
|   | 
|   | C20Buffer (size_t len) | 
|   | Init with original length of buffer.  More...
  | 
|   | 
| size_t  | bufferSize () | 
|   | To get how many elements are allowed in the buffer.  More...
  | 
|   | 
| size_t  | size () | 
|   | To get how many VALID elements are existed in the buffer.  More...
  | 
|   | 
| dataType *  | data () | 
|   | To get the original memory area ponter of data.  More...
  | 
|   | 
| dataType *  | data (size_t offset) | 
|   | To get the original memory area ponter of data, with offset.  More...
  | 
|   | 
| size_t  | append (dataType da) | 
|   | Append the data to the buffer.  More...
  | 
|   | 
| size_t  | append (dataType *da, size_t len) | 
|   | Append the data to the buffer.  More...
  | 
|   | 
 | 
| 
std::vector< dataType >  | area | 
|   | 
template<typename dataType>
class INTELLI::C20Buffer< dataType >
- Template Parameters
 - 
  
    | dataType | The type of your buffering element  | 
  
   
 
◆ C20Buffer()
template<typename dataType > 
 
Init with original length of buffer. 
- Parameters
 - 
  
    | len | THe original length of buffer  | 
  
   
 
 
◆ append() [1/2]
template<typename dataType > 
 
Append the data to the buffer. 
- Parameters
 - 
  
    | da | Data to be appended, a buffer  | 
    | len | the length of data  | 
  
   
- Note
 - Exceed length will lead to a push_back in vector 
 
- Returns
 - The valid size after this append 
 
 
 
◆ append() [2/2]
template<typename dataType > 
 
Append the data to the buffer. 
- Parameters
 - 
  
  
 
- Note
 - Exceed length will lead to a push_back in vector 
 
- Returns
 - The valid size after this append 
 
 
 
◆ bufferSize()
template<typename dataType > 
 
To get how many elements are allowed in the buffer. 
- Returns
 - The size of buffer area, i.e., area.size() 
 
- Note
 - : This is NOT the size of valid data 
 
- See also
 - size 
 
 
 
◆ data() [1/2]
template<typename dataType > 
 
To get the original memory area ponter of data. 
- Returns
 - The memory area address (pointer) that stores the data 
 
 
 
◆ data() [2/2]
template<typename dataType > 
 
To get the original memory area ponter of data, with offset. 
- Parameters
 - 
  
  
 
- Returns
 - The memory area address (pointer) that stores the data 
 
- Warning
 - Please ensure the offset is NOT larger than the area.size()-1 
 
 
 
◆ size()
template<typename dataType > 
 
To get how many VALID elements are existed in the buffer. 
- Returns
 - The size of VALID elements 
 
- Note
 - : This is NOT the size of total buffer 
 
- See also
 - bufferSize 
 
 
 
The documentation for this class was generated from the following file: