35 fseek(logFile->
file, offset, origin);
38 if (origin == SEEK_SET) {
44 else if (origin == SEEK_END) {
50 else if (origin == SEEK_CUR) {
78 unsigned char *buf = (
unsigned char *)
buffer;
88 if (total_size != 0) {
89 memcpy(buf, logFile->
memCursor, total_size);
103 logFile->
memCursor +=
sizeof(
unsigned char);
115 logFile->
memCursor +=
sizeof(
unsigned short);
127 logFile->
memCursor +=
sizeof(
unsigned int);
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
__kernel void ccl_constant KernelData ccl_global void ccl_global char ccl_global int ccl_global char ccl_global unsigned int ccl_global float * buffer
int logimage_read_ushort(unsigned short *x, LogImageFile *logFile)
int logimage_read_uchar(unsigned char *x, LogImageFile *logFile)
int logimage_fseek(LogImageFile *logFile, intptr_t offset, int origin)
int logimage_read_uint(unsigned int *x, LogImageFile *logFile)
int logimage_fread(void *buffer, size_t size, unsigned int count, LogImageFile *logFile)
int logimage_fwrite(void *buffer, size_t size, unsigned int count, LogImageFile *logFile)
_W64 unsigned int uintptr_t
unsigned char * memBuffer
unsigned char * memCursor