#include <LBuffer.h>
Inheritance diagram for LBuffer:

Public Member Functions | |
| LBuffer (int W, int H, int sz) | |
| Initializes a lockable buffer, of size W*H*sz (just like a malloc). | |
| ~LBuffer () | |
| Deletes the buffer object, and frees its associated memory. | |
| void | lock () |
| void | unlock () |
| Unlock the buffer. | |
| size_t | width () |
| Return the "width" of the buffer. | |
| size_t | height () |
| Return the "height" of the buffer. | |
| size_t | elmentsz () |
| Return the number of bytes of each element. | |
| size_t | size () |
| Return the size of the buffer (W*H*elementsz). | |
| void * | ptr () |
| Return a pointer to the associated memory. | |
LBuffer is basically a malloc'd buffer with an associated mutex lock that can be checked before/locked during reads/writes. It has an "width/height"
|
||||||||||||||||
|
Initializes a lockable buffer, of size W*H*sz (just like a malloc).
|
|
|
Deletes the buffer object, and frees its associated memory.
|
|
|
Return the number of bytes of each element.
|
|
|
Return the "height" of the buffer.
|
|
|
Lock the buffer. Any subsequent attempts to lock it while it is already locked will block. |
|
|
Return a pointer to the associated memory.
|
|
|
Return the size of the buffer (W*H*elementsz).
|
|
|
Unlock the buffer.
|
|
|
Return the "width" of the buffer.
|
1.4.0