Home
last modified time | relevance | path

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

1234

/external/pdfium/core/src/fxcrt/
Dfxcrt_posix.cpp86 size_t CFXCRT_FileAccess_Posix::Read(void* pBuffer, size_t szBuffer) in Read() argument
91 return read(m_nFD, pBuffer, szBuffer); in Read()
93 size_t CFXCRT_FileAccess_Posix::Write(const void* pBuffer, size_t szBuffer) in Write() argument
98 return write(m_nFD, pBuffer, szBuffer); in Write()
100 size_t CFXCRT_FileAccess_Posix::ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in ReadPos() argument
111 return Read(pBuffer, szBuffer); in ReadPos()
113 size_t CFXCRT_FileAccess_Posix::WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in WritePos() argument
121 return Write(pBuffer, szBuffer); in WritePos()
167 FX_LPBYTE pBuffer = FX_Alloc(FX_BYTE, 32768); in FX_File_Copy() local
168 num = src.Read(pBuffer, 32768); in FX_File_Copy()
[all …]
Dfxcrt_platforms.cpp100 size_t CFXCRT_FileAccess_CRT::Read(void* pBuffer, size_t szBuffer) in Read() argument
105 return FXSYS_fread(pBuffer, 1, szBuffer, m_hFile); in Read()
107 size_t CFXCRT_FileAccess_CRT::Write(const void* pBuffer, size_t szBuffer) in Write() argument
112 return FXSYS_fwrite(pBuffer, 1, szBuffer, m_hFile); in Write()
114 size_t CFXCRT_FileAccess_CRT::ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in ReadPos() argument
120 return FXSYS_fread(pBuffer, 1, szBuffer, m_hFile); in ReadPos()
122 size_t CFXCRT_FileAccess_CRT::WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in WritePos() argument
128 return FXSYS_fwrite(pBuffer, 1, szBuffer, m_hFile); in WritePos()
171 FX_LPBYTE pBuffer = FX_Alloc(FX_BYTE, 32768); in FX_File_Copy() local
172 while (num = src.Read(pBuffer, 32768)) { 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()
123 IFX_MemoryStream* FX_CreateMemoryStream(FX_LPBYTE pBuffer, size_t dwSize, FX_BOOL bTakeOver) in FX_CreateMemoryStream() argument
125 return new CFX_MemoryStream(pBuffer, dwSize, bTakeOver); in FX_CreateMemoryStream()
[all …]
Dfxcrt_windows.cpp131 size_t CFXCRT_FileAccess_Win64::Read(void* pBuffer, size_t szBuffer) in Read() argument
137 if (!::ReadFile(m_hFile, pBuffer, (DWORD)szBuffer, (LPDWORD)&szRead, NULL)) { in Read()
142 size_t CFXCRT_FileAccess_Win64::Write(const void* pBuffer, size_t szBuffer) in Write() argument
148 if (!::WriteFile(m_hFile, pBuffer, (DWORD)szBuffer, (LPDWORD)&szWrite, NULL)) { in Write()
153 size_t CFXCRT_FileAccess_Win64::ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in ReadPos() argument
164 return Read(pBuffer, szBuffer); in ReadPos()
166 size_t CFXCRT_FileAccess_Win64::WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) in WritePos() argument
174 return Write(pBuffer, szBuffer); in WritePos()
Dfxcrt_windows.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);
Dfxcrt_posix.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);
Dfxcrt_platforms.h27 virtual size_t Read(void* pBuffer, size_t szBuffer);
28 virtual size_t Write(const void* pBuffer, size_t szBuffer);
29 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
30 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
Dextension.h23 virtual size_t Read(void* pBuffer, size_t szBuffer) = 0;
24 virtual size_t Write(const void* pBuffer, size_t szBuffer) = 0;
25 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) = 0;
26 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) = 0;
149 CFX_MemoryStream(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver) in CFX_MemoryStream() argument
157 m_Blocks.Add(pBuffer); in CFX_MemoryStream()
362 …virtual void AttachBuffer(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver = FALSE) FX_OVERR…
368 m_Blocks.Add(pBuffer);
434 FX_BOOL FX_GenerateCryptoRandom(FX_LPDWORD pBuffer, FX_INT32 iCount);
/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/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/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/libnfc-nci/halimpl/pn54x/tml/
DphTmlNfc_i2c.c122 int phTmlNfc_i2c_read(void *pDevHandle, uint8_t * pBuffer, int nNbBytesToRead) in phTmlNfc_i2c_read() argument
168 ret_Read = read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
195 ret_Read = read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
208 totalBtyesToRead = pBuffer[FW_DNLD_LEN_OFFSET] + FW_DNLD_HEADER_LEN + CRC_LEN; in phTmlNfc_i2c_read()
212 totalBtyesToRead = pBuffer[NORMAL_MODE_LEN_OFFSET] + NORMAL_MODE_HEADER_LEN; in phTmlNfc_i2c_read()
214 ret_Read = read((intptr_t)pDevHandle, (pBuffer + numRead), totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
229 phNxpNciHal_print_packet("RECV",pBuffer, NORMAL_MODE_HEADER_LEN); in phTmlNfc_i2c_read()
252 int phTmlNfc_i2c_write(void *pDevHandle, uint8_t * pBuffer, int nNbBytesToWrite) in phTmlNfc_i2c_write() argument
280 ret = write((intptr_t)pDevHandle, pBuffer + numWrote, numBytes - numWrote); in phTmlNfc_i2c_write()
DphTmlNfc.c371 memcpy(gpphTmlNfc_Context->tReadInfo.pBuffer, temp, dwNoBytesWrRd); in phTmlNfc_TmlThread()
377 (0x00 != (gpphTmlNfc_Context->tReadInfo.pBuffer[0] & 0xE0))) in phTmlNfc_TmlThread()
394 phNxpNciHal_print_packet("RECV", gpphTmlNfc_Context->tReadInfo.pBuffer, in phTmlNfc_TmlThread()
401 tTransactionInfo.pBuff = gpphTmlNfc_Context->tReadInfo.pBuffer; in phTmlNfc_TmlThread()
480 gpphTmlNfc_Context->tWriteInfo.pBuffer, in phTmlNfc_TmlWriterThread()
501 phNxpNciHal_print_packet("SEND", gpphTmlNfc_Context->tWriteInfo.pBuffer, in phTmlNfc_TmlWriterThread()
512 tTransactionInfo.pBuff = gpphTmlNfc_Context->tWriteInfo.pBuffer; in phTmlNfc_TmlWriterThread()
531 (0x00 != (gpphTmlNfc_Context->tWriteInfo.pBuffer[0] & 0xE0))) in phTmlNfc_TmlWriterThread()
558 (0x00 != (gpphTmlNfc_Context->tWriteInfo.pBuffer[0] & 0xE0))) in phTmlNfc_TmlWriterThread()
693 NFCSTATUS phTmlNfc_Write(uint8_t *pBuffer, uint16_t wLength, pphTmlNfc_TransactCompletionCb_t pTmlW… in phTmlNfc_Write() argument
[all …]
DphTmlNfc.h127 uint8_t *pBuffer; /*Buffer passed while invocation of operation */ member
200 NFCSTATUS phTmlNfc_Write(uint8_t *pBuffer, uint16_t wLength, pphTmlNfc_TransactCompletionCb_t pTmlW…
201 NFCSTATUS phTmlNfc_Read(uint8_t *pBuffer, uint16_t wLength, pphTmlNfc_TransactCompletionCb_t pTmlRe…
/external/libnfc-nci/src/adaptation/
Dlibmain.c61 extern void nfa_mem_co_free(void *pBuffer) in nfa_mem_co_free() argument
63 free(pBuffer); in nfa_mem_co_free()
87 extern void nfa_nv_co_read(UINT8 *pBuffer, UINT16 nbytes, UINT8 block) in nfa_nv_co_read() argument
108 size_t actualReadData = read (fileStream, pBuffer, nbytes); in nfa_nv_co_read()
146 extern void nfa_nv_co_write(const UINT8 *pBuffer, UINT16 nbytes, UINT8 block) in nfa_nv_co_write() argument
167 unsigned short checksum = crcChecksumCompute (pBuffer, nbytes); in nfa_nv_co_write()
169 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/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.c_str(), pBuffer, nLength); in LoadGlobalPersistentVariables()
357 CRYPT_ArcFourCryptBlock(pBuffer, nLength, JS_RC4KEY, sizeof(JS_RC4KEY)); in LoadGlobalPersistentVariables()
359 if (pBuffer) in LoadGlobalPersistentVariables()
361 FX_LPBYTE p = pBuffer; in LoadGlobalPersistentVariables()
384 if (p > pBuffer + nLength) in LoadGlobalPersistentVariables()
390 if (p + dwNameLen > pBuffer + nLength) in LoadGlobalPersistentVariables()
437 if (p + dwLength > pBuffer + nLength) in LoadGlobalPersistentVariables()
454 FX_Free(pBuffer); in LoadGlobalPersistentVariables()
514 void CJS_GlobalData::LoadFileBuffer(FX_LPCWSTR sFilePath, FX_LPBYTE& pBuffer, FX_INT32& nLength) in LoadFileBuffer() argument
[all …]
/external/pdfium/core/include/fxcrt/
Dfx_stream.h53 size_t FX_File_Read(FX_HFILE hFile, void* pBuffer, size_t szBuffer);
54 size_t FX_File_ReadPos(FX_HFILE hFile, void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
55 size_t FX_File_Write(FX_HFILE hFile, const void* pBuffer, size_t szBuffer);
56 size_t FX_File_WritePos(FX_HFILE hFile, const void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
177 virtual void AttachBuffer(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver = FALSE) = 0;
181 IFX_MemoryStream* FX_CreateMemoryStream(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver = FALSE);
/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/src/fpdfapi/fpdf_edit/
Dfpdf_edit_create.cpp286 FX_BOOL PDF_GenerateFileID(FX_DWORD dwSeed1, FX_DWORD dwSeed2, FX_LPDWORD pBuffer) in PDF_GenerateFileID() argument
288 if (!pBuffer) { in PDF_GenerateFileID()
294 *pBuffer++ = FX_Random_MT_Generate(pContext); in PDF_GenerateFileID()
299 *pBuffer++ = FX_Random_MT_Generate(pContext); in PDF_GenerateFileID()
310 …FX_BOOL Initialize(FX_LPCBYTE pBuffer, FX_DWORD size, FX_BOOL bFlateEncode, FX_BOOL bXRefStream =…
365 FX_BOOL CPDF_FlateEncoder::Initialize(FX_LPCBYTE pBuffer, FX_DWORD size, FX_BOOL bFlateEncode, FX_B… in Initialize() argument
368 m_pData = (FX_LPBYTE)pBuffer; in Initialize()
374 ::FlateEncode(pBuffer, size, 12, 1, 8, 7, m_pData, m_dwSize); in Initialize()
376 ::FlateEncode(pBuffer, size, m_pData, m_dwSize); in Initialize()
449 FX_INT32 CPDF_ObjectStream::CompressIndirectObject(FX_DWORD dwObjNum, FX_LPCBYTE pBuffer, FX_DWORD … in CompressIndirectObject() argument
[all …]

1234