Cursor within a MessageBuffer.
More...
#include <erpc_message_buffer.h>
erpc::MessageBuffer::Cursor::Cursor |
( |
void |
| ) |
|
|
inline |
Constructor.
This function initializes object attributes.
Constructor.
This function initializes object attributes.
param[in] buffer MessageBuffer for sending/receiving.
Set message buffer.
- Parameters
-
[in] | buffer | Message buffer to set. |
uint8_t* erpc::MessageBuffer::Cursor::get |
( |
void |
| ) |
|
|
inline |
Return position in buffer.
Return position, where it last write/read.
- Returns
- Return position in buffer.
const uint8_t* erpc::MessageBuffer::Cursor::get |
( |
void |
| ) |
const |
|
inline |
Return position in buffer.
Return position, where it last write/read.
- Returns
- Return position in buffer.
uint16_t erpc::MessageBuffer::Cursor::getRemaining |
( |
void |
| ) |
const |
|
inline |
Return remaining free space in current buffer.
- Returns
- Remaining free space in current buffer.
erpc_status_t MessageBuffer::Cursor::read |
( |
void * |
data, |
|
|
uint32_t |
length |
|
) |
| |
Read data from current buffer.
- Parameters
-
[out] | data | Pointer to value, where copy read data. |
[in] | length | How much bytes need be read. |
- Return values
-
kErpcStatus_Success | |
kErpcStatus_BufferOverrun | |
erpc_status_t MessageBuffer::Cursor::write |
( |
const void * |
data, |
|
|
uint32_t |
length |
|
) |
| |
Read data from current buffer.
- Parameters
-
[out] | data | Pointer to value to be sent. |
[in] | length | How much bytes need be wrote. |
- Return values
-
kErpcStatus_Success | |
kErpcStatus_BufferOverrun | |
uint8_t& erpc::MessageBuffer::Cursor::operator[] |
( |
int |
index | ) |
|
|
inline |
Array operator return value of buffer at given index.
- Parameters
-
[in] | index | Index in buffer. |
const uint8_t& erpc::MessageBuffer::Cursor::operator[] |
( |
int |
index | ) |
const |
|
inline |
Array operator return value of buffer at given index.
- Parameters
-
[in] | index | Index in buffer. |
Cursor& erpc::MessageBuffer::Cursor::operator+= |
( |
uint16_t |
n | ) |
|
|
inline |
Sum operator return local buffer.
- Parameters
-
- Returns
- Current cursor instance.
Cursor& erpc::MessageBuffer::Cursor::operator-= |
( |
uint16_t |
n | ) |
|
|
inline |
Substract operator return local buffer.
- Parameters
-
[in] | n | Substracting with n. |
- Returns
- Current cursor instance.
Cursor& erpc::MessageBuffer::Cursor::operator++ |
( |
void |
| ) |
|
|
inline |
Sum +1 operator.
- Returns
- Current cursor instance.
Cursor& erpc::MessageBuffer::Cursor::operator-- |
( |
void |
| ) |
|
|
inline |
Substract -1 operator.
- Returns
- Current cursor instance.
The documentation for this class was generated from the following files: