mbed-drivers
|
#include <Buffer.h>
Public Member Functions | |
Buffer (void *buf=NULL, size_t length=0) | |
Public Attributes | |
void * | buf |
int | length |
A buffer is a (pointer to data, size of data) pair It's a convenient way of passing around a pointer to a memory region and the memory size of that region in a single object It doesn't take ownership of the pointer passed to it and it doesn't do any kind of memory management.