WvStreams
|
An abstraction for memory transfer operations. More...
Public Member Functions | |
void | uninit_copy (void *target, const void *source, size_t count) |
Copies initialized region to uninitialized region. | |
void | copy (void *target, const void *source, size_t count) |
Copies initialized region to initialized region. | |
void | uninit_move (void *target, void *source, size_t count) |
Moves initialized region to uninitialized region. | |
void | swap (void *target, void *source, size_t count) |
Swaps initialized regions. | |
void | uninit (void *target, size_t count) |
Uninitializes a region. | |
void * | newarray (size_t count) |
Creates a new array. | |
void | deletearray (void *buf) |
Deletes an uninitialized array. |
An abstraction for memory transfer operations.
This is in preparation for supporting buffers of full-blown objects that have special copy and destruction semantics, someday...
Definition at line 20 of file wvbufferstore.cc.
void MemOps::uninit_copy | ( | void * | target, |
const void * | source, | ||
size_t | count | ||
) | [inline] |
Copies initialized region to uninitialized region.
Definition at line 23 of file wvbufferstore.cc.
void MemOps::copy | ( | void * | target, |
const void * | source, | ||
size_t | count | ||
) | [inline] |
Copies initialized region to initialized region.
Definition at line 29 of file wvbufferstore.cc.
References uninit().
void MemOps::uninit_move | ( | void * | target, |
void * | source, | ||
size_t | count | ||
) | [inline] |
Moves initialized region to uninitialized region.
Source data becomes uninitialized.
Definition at line 38 of file wvbufferstore.cc.
References uninit().
Referenced by WvCircularBufStore::compact().
void MemOps::swap | ( | void * | target, |
void * | source, | ||
size_t | count | ||
) | [inline] |
Swaps initialized regions.
Definition at line 45 of file wvbufferstore.cc.
Referenced by WvCircularBufStore::compact().
void MemOps::uninit | ( | void * | target, |
size_t | count | ||
) | [inline] |
Uninitializes a region.
Definition at line 58 of file wvbufferstore.cc.
Referenced by copy(), and uninit_move().
void* MemOps::newarray | ( | size_t | count | ) | [inline] |
Creates a new array.
Definition at line 62 of file wvbufferstore.cc.
Referenced by WvCircularBufStore::compact().
void MemOps::deletearray | ( | void * | buf | ) | [inline] |
Deletes an uninitialized array.
Definition at line 67 of file wvbufferstore.cc.
References deletev.
Referenced by WvCircularBufStore::compact().