Lines Matching refs:m_pBuffer
12 , m_pBuffer(NULL)
23 m_pBuffer = FX_Allocator_Alloc(m_pAllocator, FX_BYTE, size);
27 if (m_pBuffer) {
28 FX_Allocator_Free(m_pAllocator, m_pBuffer);
33 if (!m_pBuffer || start_index < 0 || start_index + count > m_DataSize) {
36 FXSYS_memmove32(m_pBuffer + start_index, m_pBuffer + start_index + count, m_DataSize - start_index - count);
46 m_pBuffer = NULL;
51 if (m_pBuffer) {
52 FX_Allocator_Free(m_pAllocator, m_pBuffer);
55 m_pBuffer = (FX_LPBYTE)buffer;
87 FX_LPBYTE pNewBuffer = m_pBuffer;
89 pNewBuffer = FX_Allocator_Realloc(m_pAllocator, FX_BYTE, m_pBuffer, new_size);
94 m_pBuffer = pNewBuffer;
107 if (!m_pBuffer) {
110 FXSYS_memcpy32(m_pBuffer, pStr, size);
116 if (pBuf && m_pBuffer) {
117 FXSYS_memcpy32(m_pBuffer + m_DataSize, pBuf, size);
124 if (!m_pBuffer) {
127 FXSYS_memmove32(m_pBuffer + pos + size, m_pBuffer + pos, m_DataSize - pos);
129 FXSYS_memcpy32(m_pBuffer + pos, pBuf, size);
136 if (!m_pBuffer) {
139 FXSYS_memset8(m_pBuffer + m_DataSize, byte, count);
144 return CFX_ByteStringC(m_pBuffer, m_DataSize);
148 str.Set(CFX_ByteStringC(m_pBuffer, m_DataSize), m_pAllocator);
178 AppendBlock(buf.m_pBuffer, buf.m_DataSize);
190 ASSERT(m_pBuffer != NULL);
191 *(FX_WCHAR*)(m_pBuffer + m_DataSize) = ch;
212 ASSERT(m_pBuffer != NULL);
213 FX_LPWSTR str = (FX_WCHAR*)(m_pBuffer + m_DataSize);
227 ASSERT(m_pBuffer != NULL);
228 FX_LPWSTR str = (FX_WCHAR*)(m_pBuffer + m_DataSize);
242 AppendBlock(buf.m_pBuffer, buf.m_DataSize);
251 return CFX_WideStringC((FX_LPCWSTR)m_pBuffer, m_DataSize / sizeof(FX_WCHAR));
255 wideText.Set(CFX_WideStringC((FX_LPCWSTR)m_pBuffer, m_DataSize / sizeof(FX_WCHAR)), m_pAllocator);
445 , m_pBuffer(NULL)
452 if (m_pBuffer) {
453 FX_Allocator_Free(m_pAllocator, m_pBuffer);
454 m_pBuffer = NULL;
459 FX_BOOL bRet = DoWork(m_pBuffer, m_Length);
468 if (!m_pBuffer) {
469 m_pBuffer = FX_Allocator_Alloc(m_pAllocator, FX_BYTE, m_BufSize);
470 if (!m_pBuffer) {
478 FXSYS_memcpy32(m_pBuffer + m_Length, buffer, buf_size);