RainbowBS Manual: memory operation

RainbowBS

RainbowBS Manual  v0.1.0
Written by QWQ([email protected])
memory operation

Functions

void RBS_MemSet8 (U8 *pDes, U8 fill, USIZE num)
 Set memory by byte unit. More...
 
void RBS_MemSet16 (U16 *pDes, U16 fill, USIZE num)
 Set memory by two-bytes unit. More...
 
void RBS_MemSet32 (U32 *pDes, U32 fill, USIZE num)
 Set memory by four-bytes unit. More...
 
void RBS_MemCpy8 (U8 *pDes, const U8 *pSrc, USIZE num)
 Copy memory by byte unit. More...
 
U16 RBS_Read16L (const U8 **ppData)
 Read a 16-bits entity in little-endian. More...
 
U32 RBS_Read32L (const U8 **ppData)
 Read a 32-bits entity in little-endian. More...
 
void RBS_Write16L (U8 **ppData, U16 data)
 Write a 16-bits entity in little-endian. More...
 
void RBS_Write32L (U8 **ppData, U32 data)
 Write a 32-bits entity in little-endian. More...
 
U16 RBS_Read16B (const U8 **ppData)
 Read a 16-bits entity in big-endian. More...
 
U32 RBS_Read32B (const U8 **ppData)
 Read a 32-bits entity in big-endian. More...
 
void RBS_Write16B (U8 **ppData, U16 data)
 Write a 16-bits entity in big-endian. More...
 
void RBS_Write32B (U8 **ppData, U32 data)
 Write a 32-bits entity in big-endian. More...
 

Detailed Description

Memory set and copy operation.

Function Documentation

void RBS_MemCpy8 ( U8 *  pDes,
const U8 *  pSrc,
USIZE  num 
)
Parameters
[out]pDesdestination pointer.
[in]pSrcsource pointer.
[in]numtotal units.

Here is the caller graph for this function:

void RBS_MemSet16 ( U16 *  pDes,
U16  fill,
USIZE  num 
)
Parameters
[out]pDesdestination pointer(two-bytes alignment).
[in]filltwo-bytes filled.
[in]numtotal units.
void RBS_MemSet32 ( U32 *  pDes,
U32  fill,
USIZE  num 
)
Parameters
[out]pDesdestination pointer(four-bytes alignment).
[in]fillfour-bytes filled.
[in]numtotal units.
void RBS_MemSet8 ( U8 *  pDes,
U8  fill,
USIZE  num 
)
Parameters
[out]pDesdestination pointer.
[in]fillbyte filled.
[in]numtotal units.

Here is the caller graph for this function:

U16 RBS_Read16B ( const U8 **  ppData)
Parameters
[in,out]ppDatadata pointer,added 2 bytes after calling.
Returns
data entity
U16 RBS_Read16L ( const U8 **  ppData)
Parameters
[in,out]ppDatadata pointer,added 2 bytes after calling.
Returns
data entity
U32 RBS_Read32B ( const U8 **  ppData)
Parameters
[in,out]ppDatadata pointer,added 4 bytes after calling.
Returns
data entity
U32 RBS_Read32L ( const U8 **  ppData)
Parameters
[in,out]ppDatadata pointer,added 4 bytes after calling.
Returns
data entity
void RBS_Write16B ( U8 **  ppData,
U16  data 
)
Parameters
[in,out]ppDatadata pointer,added 2 bytes after calling.
[in]datadata to be wtitten.
void RBS_Write16L ( U8 **  ppData,
U16  data 
)
Parameters
[in,out]ppDatadata pointer,added 2 bytes after calling.
[in]datadata to be wtitten.
void RBS_Write32B ( U8 **  ppData,
U32  data 
)
Parameters
[in,out]ppDatadata pointer,added 4 bytes after calling.
[in]datadata to be wtitten.
void RBS_Write32L ( U8 **  ppData,
U32  data 
)
Parameters
[in,out]ppDatadata pointer,added 4 bytes after calling.
[in]datadata to be wtitten.
Generated by   doxygen 1.8.9.1