libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <buf.h>
Public Member Functions | |
Buf (size_t size) | |
bool | alloc (size_t size) |
void * | get () const |
void * | operator() () const |
size_t | size () const |
bool | isAlloc () const |
Create memory buffer for use in send, receive, build and parse
|
inline |
Create a new memory buffer
[in] | size | new buffer size |
bool Buf::alloc | ( | size_t | size | ) |
Create a new memory buffer or resize existing one
[in] | size | buffer new size |
|
inline |
Get memory buffer pointer
|
inline |
Is memory buffer allocated?
|
inline |
Get memory buffer pointer
|
inline |
Get memory buffer size