Lines Matching refs:lpBuffer
270 virtual bool Read(void* lpBuffer, const unsigned int dwNumberOfBytesToRead) = 0;
312 bool ReadAfterAlloc(T* &lpBuffer, const unsigned int dwNumberOfBytesToRead) in ReadAfterAlloc() argument
314 if(!SafeAlloc(lpBuffer, dwNumberOfBytesToRead)) in ReadAfterAlloc()
316 return Read(lpBuffer, dwNumberOfBytesToRead); in ReadAfterAlloc()
320 bool ReadAfterAlloc32(T* &lpBuffer, const unsigned int dwNumberOfBytesToRead) in ReadAfterAlloc32() argument
323 if(!SafeAlloc(lpBuffer, dwNumberOfBytesToRead/4)) in ReadAfterAlloc32()
325 return ReadArray32((unsigned int*) lpBuffer, dwNumberOfBytesToRead / 4); in ReadAfterAlloc32()
341 bool ReadAfterAlloc16(T* &lpBuffer, const unsigned int dwNumberOfBytesToRead) in ReadAfterAlloc16() argument
344 if(!SafeAlloc(lpBuffer, dwNumberOfBytesToRead/2 )) in ReadAfterAlloc16()
346 return ReadArray16((unsigned short*) lpBuffer, dwNumberOfBytesToRead / 2); in ReadAfterAlloc16()
394 virtual bool Read(void* lpBuffer, const unsigned int dwNumberOfBytesToRead);
464 bool CSourceStream::Read(void* lpBuffer, const unsigned int dwNumberOfBytesToRead) in Read() argument
466 _ASSERT(lpBuffer); in Read()
471 memcpy(lpBuffer, &((char*) m_pFile->DataPtr())[m_BytesReadCount], dwNumberOfBytesToRead); in Read()
501 virtual bool Read(void* lpBuffer, const unsigned int dwNumberOfBytesToRead);
545 bool CSourceResource::Read(void* lpBuffer, const unsigned int dwNumberOfBytesToRead) in Read() argument
550 _ASSERT(lpBuffer); in Read()
551 memcpy(lpBuffer, &m_pData[m_nReadPos], dwNumberOfBytesToRead); in Read()
579 static bool WriteFileSafe(FILE *pFile, const void * const lpBuffer, const unsigned int nNumberOfByt… in WriteFileSafe() argument
583 size_t count = fwrite(lpBuffer, nNumberOfBytesToWrite, 1, pFile); in WriteFileSafe()
589 static bool WriteFileSafe16(FILE *pFile, const unsigned short * const lpBuffer, const unsigned int … in WriteFileSafe16() argument
598 ub[0] = (unsigned char) lpBuffer[i]; in WriteFileSafe16()
599 ub[1] = lpBuffer[i] >> 8; in WriteFileSafe16()
609 static bool WriteFileSafe32(FILE *pFile, const unsigned int * const lpBuffer, const unsigned int nS… in WriteFileSafe32() argument
618 ub[0] = (unsigned char) (lpBuffer[i]); in WriteFileSafe32()
619 ub[1] = (unsigned char) (lpBuffer[i] >> 8); in WriteFileSafe32()
620 ub[2] = (unsigned char) (lpBuffer[i] >> 16); in WriteFileSafe32()
621 ub[3] = (unsigned char) (lpBuffer[i] >> 24); in WriteFileSafe32()