#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
| pFileName | pointer to a character array storing the file name | |
| pAccessRights | file access modes __SI_FILE_READ_TEXT : opens a text file in read mode __SI_FILE_READ_BINARY : opens a binary file in read mode __SI_FILE_WRITE_TEXT : unsupported mode __SI_FILE_WRITE_BINARY : unsupported mode |
|
| pMemoryBlock | pointer to the read/write memory block to use | |
| nMemorySize | size of the memory block |
| ~CSIBCFileRam | ( | ) | [inline] |
Destructor
| SI_Void Init | ( | ) | [inline] |
Set a CSIBCFileRam instance default values
| SI_Bool IsValid | ( | ) | [inline] |
Checks if the memory file object is valid
| TRUE | memory file object is valid | |
| 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
| pFileName | Pointer to a character array storing the name of the file. | |
| pAccessRights | Pointer to access rights. | |
| pMemoryBlock | Pointer to a memory block. | |
| 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
| pDest | Pointer to the read buffer | |
| nDestSize | size in bytes of the buffer element | |
| nCount | counts how many items have been read |