StaticBuffer.cpp File Reference
Go to the source code of this file.
Defines | |
| #define | READMACRO() |
Define Documentation
| #define READMACRO | ( | ) |
Value:
/* Calculate the total number of bytes to be read */ \ int totalSize=sizeof(*value)*count; \ /* Make sure we're not trying to read more bytes than there is */ \ if (position_+totalSize>size_) \ { \ count=(size_-position_)/sizeof(*value); \ totalSize=sizeof(*value)*count; \ } \ /* Copy the actual bytes from the buffer */ \ MemCpy(value,buffer_+position_,totalSize); \ /* Update the current position */ \ position_+=totalSize; \ /* Return the number of elements written */ \ return count; \
Definition at line 74 of file StaticBuffer.cpp.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
