Home
last modified time | relevance | path

Searched refs:pBuffer (Results 1 – 25 of 110) sorted by relevance

12345

/external/pdfium/core/src/fxcrt/
Dfxcrt_posix.cpp94 size_t CFXCRT_FileAccess_Posix::Read(void* pBuffer, size_t szBuffer) in Read() argument
99 return read(m_nFD, pBuffer, szBuffer); in Read()
101 size_t CFXCRT_FileAccess_Posix::Write(const void* pBuffer, size_t szBuffer) in Write() argument
106 return write(m_nFD, pBuffer, szBuffer); in Write()
108 size_t CFXCRT_FileAccess_Posix::ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in ReadPos() argument
119 return Read(pBuffer, szBuffer); in ReadPos()
121 size_t CFXCRT_FileAccess_Posix::WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in WritePos() argument
129 return Write(pBuffer, szBuffer); in WritePos()
175 FX_LPBYTE pBuffer = FX_Alloc(FX_BYTE, 32768); in FX_File_Copy() local
176 if (!pBuffer) { in FX_File_Copy()
[all …]
Dfxcrt_platforms.cpp108 size_t CFXCRT_FileAccess_CRT::Read(void* pBuffer, size_t szBuffer) in Read() argument
113 return FXSYS_fread(pBuffer, 1, szBuffer, m_hFile); in Read()
115 size_t CFXCRT_FileAccess_CRT::Write(const void* pBuffer, size_t szBuffer) in Write() argument
120 return FXSYS_fwrite(pBuffer, 1, szBuffer, m_hFile); in Write()
122 size_t CFXCRT_FileAccess_CRT::ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in ReadPos() argument
128 return FXSYS_fread(pBuffer, 1, szBuffer, m_hFile); in ReadPos()
130 size_t CFXCRT_FileAccess_CRT::WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in WritePos() argument
136 return FXSYS_fwrite(pBuffer, 1, szBuffer, m_hFile); in WritePos()
179 FX_LPBYTE pBuffer = FX_Alloc(FX_BYTE, 32768); in FX_File_Copy() local
180 if (!pBuffer) { in FX_File_Copy()
[all …]
Dfx_extension.cpp53 size_t FX_File_Read(FX_HFILE hFile, void* pBuffer, size_t szBuffer) in FX_File_Read() argument
56 return ((IFXCRT_FileAccess*)hFile)->Read(pBuffer, szBuffer); in FX_File_Read()
58 size_t FX_File_ReadPos(FX_HFILE hFile, void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in FX_File_ReadPos() argument
61 return ((IFXCRT_FileAccess*)hFile)->ReadPos(pBuffer, szBuffer, pos); in FX_File_ReadPos()
63 size_t FX_File_Write(FX_HFILE hFile, const void* pBuffer, size_t szBuffer) in FX_File_Write() argument
66 return ((IFXCRT_FileAccess*)hFile)->Write(pBuffer, szBuffer); in FX_File_Write()
68 size_t FX_File_WritePos(FX_HFILE hFile, const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in FX_File_WritePos() argument
71 return ((IFXCRT_FileAccess*)hFile)->WritePos(pBuffer, szBuffer, pos); in FX_File_WritePos()
131 IFX_MemoryStream* FX_CreateMemoryStream(FX_LPBYTE pBuffer, size_t dwSize, FX_BOOL bTakeOver, IFX_Al… in FX_CreateMemoryStream() argument
134 … return FX_NewAtAllocator(pAllocator)CFX_MemoryStream(pBuffer, dwSize, bTakeOver, pAllocator); in FX_CreateMemoryStream()
[all …]
Dfxcrt_windows.cpp139 size_t CFXCRT_FileAccess_Win64::Read(void* pBuffer, size_t szBuffer) in Read() argument
145 if (!::ReadFile(m_hFile, pBuffer, (DWORD)szBuffer, (LPDWORD)&szRead, NULL)) { in Read()
150 size_t CFXCRT_FileAccess_Win64::Write(const void* pBuffer, size_t szBuffer) in Write() argument
156 if (!::WriteFile(m_hFile, pBuffer, (DWORD)szBuffer, (LPDWORD)&szWrite, NULL)) { in Write()
161 size_t CFXCRT_FileAccess_Win64::ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in ReadPos() argument
172 return Read(pBuffer, szBuffer); in ReadPos()
174 size_t CFXCRT_FileAccess_Win64::WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in WritePos() argument
182 return Write(pBuffer, szBuffer); in WritePos()
Dfxcrt_windows.h23 virtual size_t Read(void* pBuffer, size_t szBuffer);
24 virtual size_t Write(const void* pBuffer, size_t szBuffer);
25 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
26 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
Dfxcrt_posix.h23 virtual size_t Read(void* pBuffer, size_t szBuffer);
24 virtual size_t Write(const void* pBuffer, size_t szBuffer);
25 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
26 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
Dfxcrt_platforms.h25 virtual size_t Read(void* pBuffer, size_t szBuffer);
26 virtual size_t Write(const void* pBuffer, size_t szBuffer);
27 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
28 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
/external/sonivox/arm-hybrid-22k/lib_src/
Deas_fmengine.c51 …G_VOICE *p, EAS_U16 gainTarget, EAS_I32 numSamplesToAdd, EAS_PCM *pInputBuffer, EAS_I32 *pBuffer);
275 EAS_PCM *pBuffer, in FM_Operator() argument
346 temp2 += *pBuffer; in FM_Operator()
347 *pBuffer++ = FM_Saturate(temp2); in FM_Operator()
352 *pBuffer++ = (EAS_I16) temp2; in FM_Operator()
387 EAS_PCM *pBuffer, in FM_NoiseOperator() argument
444 temp2 += *pBuffer; in FM_NoiseOperator()
445 *pBuffer++ = FM_Saturate(temp2); in FM_NoiseOperator()
450 *pBuffer++ = (EAS_I16) temp2; in FM_NoiseOperator()
551 EAS_PCM *pBuffer, in FM_ProcessVoice() argument
[all …]
DARM-E_filter_gnu.s40 pBuffer .req r2 label
67 LDR pBuffer, [pWTFrame, #m_pAudioBuffer]
88 LDRSH tmp0, [pBuffer] @ fetch sample
98 LDRSH tmp1, [pBuffer, #NEXT_OUTPUT_PCM] @ fetch next sample
101 STRH z1, [pBuffer], #NEXT_OUTPUT_PCM @ write back to buffer
115 LDRGTSH tmp0, [pBuffer, #NEXT_OUTPUT_PCM] @ fetch next sample
117 STRH z1, [pBuffer], #NEXT_OUTPUT_PCM @ write back to buffer
/external/sonivox/arm-fm-22k/lib_src/
Deas_fmengine.c51 …G_VOICE *p, EAS_U16 gainTarget, EAS_I32 numSamplesToAdd, EAS_PCM *pInputBuffer, EAS_I32 *pBuffer);
275 EAS_PCM *pBuffer, in FM_Operator() argument
346 temp2 += *pBuffer; in FM_Operator()
347 *pBuffer++ = FM_Saturate(temp2); in FM_Operator()
352 *pBuffer++ = (EAS_I16) temp2; in FM_Operator()
387 EAS_PCM *pBuffer, in FM_NoiseOperator() argument
444 temp2 += *pBuffer; in FM_NoiseOperator()
445 *pBuffer++ = FM_Saturate(temp2); in FM_NoiseOperator()
450 *pBuffer++ = (EAS_I16) temp2; in FM_NoiseOperator()
551 EAS_PCM *pBuffer, in FM_ProcessVoice() argument
[all …]
/external/libnfc-nxp/src/
DphFriNfc_LlcpUtils.c257 uint8_t *pBuffer, in phFriNfc_Llcp_CyclicFifoFifoRead() argument
284 *pBuffer++ = *pNext; in phFriNfc_Llcp_CyclicFifoFifoRead()
357 uint32_t phFriNfc_Llcp_Header2Buffer( phFriNfc_Llcp_sPacketHeader_t *psHeader, uint8_t *pBuffer, ui… in phFriNfc_Llcp_Header2Buffer() argument
360 pBuffer[nOffset++] = (uint8_t)((psHeader->dsap << 2) | (psHeader->ptype >> 2)); in phFriNfc_Llcp_Header2Buffer()
361 pBuffer[nOffset++] = (uint8_t)((psHeader->ptype << 6) | psHeader->ssap); in phFriNfc_Llcp_Header2Buffer()
365 …p_Sequence2Buffer( phFriNfc_Llcp_sPacketSequence_t *psSequence, uint8_t *pBuffer, uint32_t nOffset… in phFriNfc_Llcp_Sequence2Buffer() argument
368 pBuffer[nOffset++] = (uint8_t)((psSequence->ns << 4) | (psSequence->nr)); in phFriNfc_Llcp_Sequence2Buffer()
372 uint32_t phFriNfc_Llcp_Buffer2Header( uint8_t *pBuffer, uint32_t nOffset, phFriNfc_Llcp_sPacketHead… in phFriNfc_Llcp_Buffer2Header() argument
374 psHeader->dsap = (pBuffer[nOffset] & 0xFC) >> 2; in phFriNfc_Llcp_Buffer2Header()
375 psHeader->ptype = ((pBuffer[nOffset] & 0x03) << 2) | ((pBuffer[nOffset+1] & 0xC0) >> 6); in phFriNfc_Llcp_Buffer2Header()
[all …]
DphFriNfc_LlcpUtils.h108 uint8_t *pBuffer,
122 uint8_t *pBuffer,
126 uint8_t *pBuffer,
129 uint32_t phFriNfc_Llcp_Buffer2Header( uint8_t *pBuffer,
133 uint32_t phFriNfc_Llcp_Buffer2Sequence( uint8_t *pBuffer,
DphDal4Nfc.h362 uint8_t *pBuffer,
421 uint8_t *pBuffer,
483 uint8_t *pBuffer,
/external/chromium_org/third_party/sqlite/src/src/
Dtest_vfs.c87 TestvfsBuffer *pBuffer; /* List of shared buffers */ member
727 TestvfsBuffer *pBuffer; /* Buffer to open connection to */ in tvfsShmOpen() local
752 for(pBuffer=p->pBuffer; pBuffer; pBuffer=pBuffer->pNext){ in tvfsShmOpen()
753 if( 0==strcmp(pFd->zFilename, pBuffer->zFile) ) break; in tvfsShmOpen()
755 if( !pBuffer ){ in tvfsShmOpen()
757 pBuffer = (TestvfsBuffer *)ckalloc(nByte); in tvfsShmOpen()
758 memset(pBuffer, 0, nByte); in tvfsShmOpen()
759 pBuffer->zFile = (char *)&pBuffer[1]; in tvfsShmOpen()
760 strcpy(pBuffer->zFile, pFd->zFilename); in tvfsShmOpen()
761 pBuffer->pNext = p->pBuffer; in tvfsShmOpen()
[all …]
/external/skia/src/core/
DSkPicturePlayback.cpp1434 char pBuffer[DUMP_BUFFER_SIZE]; in dumpBitmap() local
1435 char* bufferPtr = pBuffer; in dumpBitmap()
1436 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer), in dumpBitmap()
1438 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer), in dumpBitmap()
1440 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer), in dumpBitmap()
1442 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer), in dumpBitmap()
1445 SkDebugf("%s{0}};\n", pBuffer); in dumpBitmap()
1451 char pBuffer[DUMP_BUFFER_SIZE]; in dumpMatrix() local
1452 char* bufferPtr = pBuffer; in dumpMatrix()
1453 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer), in dumpMatrix()
[all …]
/external/srec/seti/sltsEngine/src/
DSWIslts.c316 pTranscription->pBuffer = MALLOC(MAX_PHONE_LEN * (num_phones + 1+1), MTAG); in SWIsltsG2PGetWordTranscriptions()
317 if( pTranscription->pBuffer == NULL ) { in SWIsltsG2PGetWordTranscriptions()
323 …nRes = GetPhoneStr(pEng, phone_string, num_phones, (char *)pTranscription->pBuffer, &(pTranscripti… in SWIsltsG2PGetWordTranscriptions()
337 if(pTranscription[i].pBuffer) { in SWIsltsG2PGetWordTranscriptions()
338 FREE(pTranscription[i].pBuffer); in SWIsltsG2PGetWordTranscriptions()
353 LCHAR * pBuffer = NULL; in SWIsltsG2PFreeWordTranscriptions() local
359 pBuffer = ((LCHAR *)pTranscriptions - sizeof(int)); in SWIsltsG2PFreeWordTranscriptions()
360 nNbrOfTranscriptions = (int)*pBuffer; in SWIsltsG2PFreeWordTranscriptions()
363 if( pTranscriptions[i].pBuffer ) { in SWIsltsG2PFreeWordTranscriptions()
364 FREE(pTranscriptions[i].pBuffer); in SWIsltsG2PFreeWordTranscriptions()
[all …]
/external/libnfc-nci/src/adaptation/
Dlibmain.c58 extern void nfa_mem_co_free(void *pBuffer) in nfa_mem_co_free() argument
60 free(pBuffer); in nfa_mem_co_free()
84 extern void nfa_nv_co_read(UINT8 *pBuffer, UINT16 nbytes, UINT8 block) in nfa_nv_co_read() argument
105 size_t actualReadData = read (fileStream, pBuffer, nbytes); in nfa_nv_co_read()
143 extern void nfa_nv_co_write(const UINT8 *pBuffer, UINT16 nbytes, UINT8 block) in nfa_nv_co_write() argument
164 unsigned short checksum = crcChecksumCompute (pBuffer, nbytes); in nfa_nv_co_write()
166 size_t actualWrittenData = write (fileStream, pBuffer, nbytes); in nfa_nv_co_write()
/external/sonivox/arm-wt-22k/lib_src/
DARM-E_filter_gnu.s40 pBuffer .req r2 label
67 LDR pBuffer, [pWTFrame, #m_pAudioBuffer]
88 LDRSH tmp0, [pBuffer] @ fetch sample
98 LDRSH tmp1, [pBuffer, #NEXT_OUTPUT_PCM] @ fetch next sample
101 STRH z1, [pBuffer], #NEXT_OUTPUT_PCM @ write back to buffer
115 LDRGTSH tmp0, [pBuffer, #NEXT_OUTPUT_PCM] @ fetch next sample
117 STRH z1, [pBuffer], #NEXT_OUTPUT_PCM @ write back to buffer
/external/pdfium/core/src/fpdfapi/fpdf_font/
Dfpdf_font_utility.cpp43 FX_BOOL FXFC_LoadFile(FX_LPVOID p, FX_LPCSTR name, FX_LPBYTE& pBuffer, FX_DWORD& size) in FXFC_LoadFile() argument
54 pBuffer = FX_Alloc(FX_BYTE, size); in FXFC_LoadFile()
56 read = FXSYS_fread(pBuffer, size, 1, pPackage->m_pFile); in FXFC_LoadFile()
59 FX_LPBYTE comp_buf = pBuffer; in FXFC_LoadFile()
61 0, 0, 0, 0, 0, pBuffer, orig_size); in FXFC_LoadFile()
/external/libnfc-nxp/Linux_x86/
DphOsalNfc.c163 void phOsalNfc_PrintData(const char *pString, uint32_t length, uint8_t *pBuffer, in phOsalNfc_PrintData() argument
174 snprintf(&print_buffer[i*3], 4, " %02X", pBuffer[i]); in phOsalNfc_PrintData()
182 llc_header = pBuffer[1]; in phOsalNfc_PrintData()
184 llc_header = pBuffer[0]; in phOsalNfc_PrintData()
DphDal4Nfc_i2c.c176 int phDal4Nfc_i2c_read(uint8_t * pBuffer, int nNbBytesToRead) in phDal4Nfc_i2c_read() argument
205 ret = read(gI2cPortContext.nHandle, pBuffer + numRead, nNbBytesToRead - numRead); in phDal4Nfc_i2c_read()
232 int phDal4Nfc_i2c_write(uint8_t * pBuffer, int nNbBytesToWrite) in phDal4Nfc_i2c_write() argument
241 ret = write(gI2cPortContext.nHandle, pBuffer + numWrote, nNbBytesToWrite - numWrote); in phDal4Nfc_i2c_write()
/external/pdfium/fpdfsdk/src/javascript/
DJS_GlobalData.cpp353 FX_LPBYTE pBuffer = NULL; in LoadGlobalPersistentVariables() local
356 LoadFileBuffer(m_sFilePath, pBuffer, nLength); in LoadGlobalPersistentVariables()
358 CRYPT_ArcFourCryptBlock(pBuffer, nLength, JS_RC4KEY, sizeof(JS_RC4KEY)); in LoadGlobalPersistentVariables()
360 if (pBuffer) in LoadGlobalPersistentVariables()
362 FX_LPBYTE p = pBuffer; in LoadGlobalPersistentVariables()
385 if (p > pBuffer + nLength) in LoadGlobalPersistentVariables()
391 if (p + dwNameLen > pBuffer + nLength) in LoadGlobalPersistentVariables()
438 if (p + dwLength > pBuffer + nLength) in LoadGlobalPersistentVariables()
455 FX_Free(pBuffer); in LoadGlobalPersistentVariables()
515 void CJS_GlobalData::LoadFileBuffer(FX_LPCWSTR sFilePath, FX_LPBYTE& pBuffer, FX_INT32& nLength) in LoadFileBuffer() argument
[all …]
/external/chromium_org/third_party/icu/source/tools/toolutil/
Dflagparser.c110 char *pBuffer; in extractFlag() local
117 pBuffer = buffer+offset; in extractFlag()
123 if (pBuffer[i+1] == 0) { in extractFlag()
129 flag[i] = pBuffer[i]; in extractFlag()
/external/icu/icu4c/source/tools/toolutil/
Dflagparser.c110 char *pBuffer; in extractFlag() local
117 pBuffer = buffer+offset; in extractFlag()
123 if (pBuffer[i+1] == 0) { in extractFlag()
129 flag[i] = pBuffer[i]; in extractFlag()
/external/pdfium/core/include/fxcrt/
Dfx_stream.h50 size_t FX_File_Read(FX_HFILE hFile, void* pBuffer, size_t szBuffer);
51 size_t FX_File_ReadPos(FX_HFILE hFile, void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
52 size_t FX_File_Write(FX_HFILE hFile, const void* pBuffer, size_t szBuffer);
53 size_t FX_File_WritePos(FX_HFILE hFile, const void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
174 virtual void AttachBuffer(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver = FALSE) = 0;
178 IFX_MemoryStream* FX_CreateMemoryStream(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver = FALSE,…

12345