35 #undef MEMPTR_SEQ_OPEN
36 #undef MEMPTR_SEQ_CLOSE
39 #undef MEMPTR_GET_DIFF
40 #undef MEMPTR_DATA_COMPARE
53 #undef READ_OBJECT_KEY
59 #define MEMPTR_SEQ_OPEN( context, memArea, offset, length, async, memPtr ) \
60 memOpen( context, memArea, (void**) &memPtr ); \
63 #define MEMPTR_SEQ_CLOSE( context, memArea, memPtr )
65 #define MEMPTR_OPEN( seqMemPtr, memPtr ) \
68 #define MEMPTR_CLOSE( memPtr )
70 #define MEMPTR_GET_DIFF( memPtr1, memPtr2, i32 ) \
71 i32 = (memPtr2 - memPtr1)
73 #define MEMPTR_DATA_COMPARE( ui8Ptr, memPtr, length, equal )\
74 equal = ((memcmp( ui8Ptr, memPtr, length ) != 0) ? FALSE:TRUE)
76 #define MEMPTR_READ( srcMemPtr, destUi8Ptr, numbytes ) \
77 memcpy( destUi8Ptr, srcMemPtr, numbytes )
79 #define MEMPTR_WRITE( srcUi8Ptr, destMemPtr, numbytes ) \
80 memcpy( destMemPtr, srcUi8Ptr, numbytes )
82 #define MEMPTR_COPY( srcMemPtr, destMemPtr, numbytes ) \
83 memcpy( destMemPtr, srcMemPtr, numbytes )
85 #define SET_POS_REL( memPtr, offset ) (memPtr += offset)
86 #define SET_POS_ABS( memPtr, memPos ) (memPtr = memPos)
87 #define GET_POS( memPtr, memPos ) (memPos = memPtr)
89 #define READ_UINT8( memPtr, ui8 ) READ_UINT8_C( memPtr, ui8 )
90 #define READ_UINT16( memPtr, ui16 ) READ_UINT16_C( memPtr, ui16 )
91 #define READ_UINT32( memPtr, ui32 ) READ_UINT32_C( memPtr, ui32 )
92 #define GET_UINT8( memPtr, ui8 ) GET_UINT8_C( memPtr, ui8 )
93 #define GET_UINT16( memPtr,ui16 ) GET_UINT16_C( memPtr, ui16 )
94 #define GET_UINT32( memPtr, ui32 ) GET_UINT32_C( memPtr, ui32 )
96 #define READ_OBJECT_KEY( memPtr, objKey, valid ) \
97 READ_OBJECT_KEY_C( memPtr, objKey, valid )
eader to the clDsmUtils module.