#include <SIBCFileRam.h>
Public Member Functions |
|
| CSIBCFileRam () | |
| CSIBCFileRam (SI_Char *pFileName, _SI_FILE_MODE pAccessRights, void *pMemoryBlock, SI_Int nMemorySize) | |
| ~CSIBCFileRam () | |
| SI_Void | Init () |
| SI_Bool | IsValid () |
| SI_Void | Open (SI_Char *pFileName, _SI_FILE_MODE pAccessRights, SI_Void *pMemoryBlock, SI_Int nMemorySize) |
| SI_Void | Close () |
| SI_Int | Read (void *pDest, SI_Int nDestSize, SI_Int nCount) |
| CSIBCFileRam | ( | ) | [inline] |
Constructor
| CSIBCFileRam | ( | SI_Char * | pFileName, | |
| _SI_FILE_MODE | pAccessRights, | |||
| void * | pMemoryBlock, | |||
| SI_Int | nMemorySize | |||
| ) | [inline] |
Constructor with user specified parameters
| [in] | pFileName | pointer to a character array storing the file name |
| [in] | pAccessRights | file access modes:
|
| [in] | pMemoryBlock | pointer to the read/write memory block to use |
| [in] | nMemorySize | size of the memory block |
| ~CSIBCFileRam | ( | ) | [inline] |
Destructor
| SI_Void Init | ( | ) | [inline] |
Sets a CSIBCFileRam instance default values
| SI_Bool IsValid | ( | ) | [inline] |
Checks if the memory file object is valid
| SI_Bool::TRUE | memory file object is valid | |
| SI_Bool::FALSE | memory file object is invalid |
| SI_Void Open | ( | SI_Char * | pFileName, | |
| _SI_FILE_MODE | pAccessRights, | |||
| SI_Void * | pMemoryBlock, | |||
| SI_Int | nMemorySize | |||
| ) | [inline] |
Opens a memory file
| [in] | pFileName | Pointer to a character array storing the name of the file. |
| [in] | pAccessRights | Pointer to access rights. |
| [in] | pMemoryBlock | Pointer to a memory block. |
| [in] | nMemorySize | the memory block size. |
| SI_Void Close | ( | ) | [inline] |
Close the memory file
| SI_Int Read | ( | void * | pDest, | |
| SI_Int | nDestSize, | |||
| SI_Int | nCount | |||
| ) | [inline] |
Read from the open memory file
| [in] | pDest | Pointer to the read buffer |
| [in] | nDestSize | size in bytes of the buffer element |
| [in] | nCount | counts how many items have been read |