WvStreams
Public Member Functions | List of all members
MemOps Struct Reference

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. More...
 
void copy (void *target, const void *source, size_t count)
 Copies initialized region to initialized region. More...
 
void uninit_move (void *target, void *source, size_t count)
 Moves initialized region to uninitialized region. More...
 
void swap (void *target, void *source, size_t count)
 Swaps initialized regions. More...
 
void uninit (void *target, size_t count)
 Uninitializes a region. More...
 
void * newarray (size_t count)
 Creates a new array. More...
 
void deletearray (void *buf)
 Deletes an uninitialized array. More...
 

Detailed Description

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.

Member Function Documentation

◆ uninit_copy()

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.

◆ copy()

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().

◆ uninit_move()

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().

◆ swap()

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().

◆ uninit()

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().

◆ newarray()

void * MemOps::newarray ( size_t  count)
inline

Creates a new array.

Definition at line 62 of file wvbufferstore.cc.

Referenced by WvCircularBufStore::compact().

◆ deletearray()

void MemOps::deletearray ( void *  buf)
inline

Deletes an uninitialized array.

Definition at line 67 of file wvbufferstore.cc.

References deletev.

Referenced by WvCircularBufStore::compact().


The documentation for this struct was generated from the following file: