| /vbox/include/iprt/ |
| H A D | pipe.h | 113 * @retval VINF_TRY_AGAIN if no data was available. @a *pcbRead will be set to 120 * @param pcbRead Where to return the number of bytes that has been 125 RTDECL(int) RTPipeRead(RTPIPE hPipe, void *pvBuf, size_t cbToRead, size_t *pcbRead); 139 * @param pcbRead Where to return the number of bytes that has been 142 RTDECL(int) RTPipeReadBlocking(RTPIPE hPipe, void *pvBuf, size_t cbToRead, size_t *pcbRead);
|
| H A D | socket.h | 158 * @param pcbRead Number of bytes read. If NULL the entire buffer 162 RTDECL(int) RTSocketRead(RTSOCKET hSocket, void *pvBuffer, size_t cbBuffer, size_t *pcbRead); 172 * @param pcbRead Number of bytes read. Must be non-NULL. 175 RTDECL(int) RTSocketReadFrom(RTSOCKET hSocket, void *pvBuffer, size_t cbBuffer, size_t *pcbRead, PRTNETADDR pSrcAddr); 326 * @param pcbRead Number of bytes read. 328 RTDECL(int) RTSocketReadNB(RTSOCKET hSocket, void *pvBuffer, size_t cbBuffer, size_t *pcbRead);
|
| H A D | localipc.h | 151 * @param cbBuffer If pcbRead is non-NULL this indicates the maximum number of 152 * bytes to read. If pcbRead is NULL then this is the exact number 154 * @param pcbRead Optional argument for indicating a partial read and returning 158 RTDECL(int) RTLocalIpcSessionRead(RTLOCALIPCSESSION hSession, void *pvBuffer, size_t cbBuffer, size_t *pcbRead);
|
| H A D | tar.h | 126 * @param pcbRead Where to return how much we actually read. If NULL 129 RTR3DECL(int) RTTarFileReadAt(RTTARFILE hFile, uint64_t off, void *pvBuf, size_t cbToRead, size_t *pcbRead);
|
| H A D | udp.h | 133 * @param pcbRead Number of bytes read. Must be non-NULL. 135 RTR3DECL(int) RTUdpRead(RTSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead, PRTNETADDR pSrcAddr);
|
| H A D | vfs.h | 520 * @retval VINF_SUCCESS and the number of bytes read written to @a pcbRead. 521 * @retval VINF_TRY_AGAIN if @a fBlocking is @c false, @a pcbRead is not NULL, 522 * and no data was available. @a *pcbRead will be set to 0. 524 * @a pcbRead is not NULL (it will be set to the number of bytes read, 531 * @a pcbRead is NULL. 538 * not, the @a pcbRead parameter must not be NULL. 539 * @param pcbRead Where to always store the number of bytes actually 544 RTDECL(int) RTVfsIoStrmRead(RTVFSIOSTREAM hVfsIos, void *pvBuf, size_t cbToRead, bool fBlocking, size_t *pcbRead); 545 RTDECL(int) RTVfsIoStrmReadAt(RTVFSIOSTREAM hVfsIos, RTFOFF off, void *pvBuf, size_t cbToRead, bool fBlocking, size_t *pcbRead); 558 * @param pcbRead Wher [all...] |
| H A D | tcp.h | 239 * @param pcbRead Number of bytes read. 243 RTR3DECL(int) RTTcpRead(RTSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead); 404 * @param pcbRead Number of bytes read. 406 RTR3DECL(int) RTTcpReadNB(RTSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead);
|
| /vbox/src/VBox/Runtime/common/zip/ |
| H A D | pkzip.cpp | 89 static DECLCALLBACK(int) memFssIos_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 97 return pcbRead ? VINF_EOF : VERR_EOF; 103 if (!pcbRead) 110 if (pcbRead) 111 *pcbRead = cbToRead;
|
| H A D | pkzipvfs.cpp | 860 static DECLCALLBACK(int) rtZipPkzipFssIosReadHelper(void *pvThis, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument 883 rc = pcbRead ? VINF_EOF : VERR_EOF; 885 && !pcbRead) 888 if (pcbRead) 889 *pcbRead = cbRead; 898 static DECLCALLBACK(int) rtZipPkzipFssIos_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 906 return pcbRead ? VINF_EOF : VERR_EOF; 913 if (!pcbRead) 972 if (!pcbRead) 973 pcbRead [all...] |
| H A D | gzipvfs.cpp | 279 * @param pcbRead Where to store the number of bytes actually read. 281 static int rtZipGzip_ReadOneSeg(PRTZIPGZIPSTREAM pThis, void *pvBuf, size_t cbToRead, bool fBlocking, size_t *pcbRead) argument 287 return pcbRead ? VINF_EOF : VERR_EOF; 350 rc = pcbRead ? VINF_EOF : VERR_EOF; 364 if (pcbRead) 365 *pcbRead = cbRead; 374 static DECLCALLBACK(int) rtZipGzip_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 383 return rtZipGzip_ReadOneSeg(pThis, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg, fBlocking, pcbRead); 726 rc = RTVfsIoStrmRead(pThis->hVfsIos, pThis->abBuffer, sizeof(RTZIPGZIPHDR), true /*fBlocking*/, NULL /*pcbRead*/);
|
| H A D | tar.cpp | 691 RTR3DECL(int) RTTarFileReadAt(RTTARFILE hFile, uint64_t off, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument 701 if (pcbRead) 702 *pcbRead = cbTmpRead; 704 rc = pcbRead ? VINF_SUCCESS : VERR_EOF; 706 else if (pcbRead) 707 *pcbRead = 0;
|
| /vbox/src/VBox/Runtime/common/dvm/ |
| H A D | dvmvfs.cpp | 89 static DECLCALLBACK(int) rtDvmVfsFile_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 103 if (pcbRead) 105 *pcbRead = 0; 115 if (!pcbRead) 117 *pcbRead = cbLeftToRead = (size_t)(RTDvmVolumeGetSize(pThis->hVol) - offUnsigned); 122 if (pcbRead) 123 *pcbRead = cbLeftToRead;
|
| /vbox/src/VBox/Runtime/common/vfs/ |
| H A D | vfsstdfile.cpp | 132 static DECLCALLBACK(int) rtVfsStdFile_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 141 rc = RTFileRead( pThis->hFile, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg, pcbRead); 143 rc = RTFileReadAt(pThis->hFile, off, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg, pcbRead); 144 if (rc == VINF_SUCCESS && pcbRead) 145 rc = rtVfsStdFile_ReadFixRC(pThis, off, pSgBuf->paSegs[0].cbSeg, *pcbRead); 161 rc = RTFileRead( pThis->hFile, pvSeg, cbSeg, pcbRead ? &cbReadSeg : NULL); 163 rc = RTFileReadAt(pThis->hFile, off, pvSeg, cbSeg, pcbRead ? &cbReadSeg : NULL); 169 if ((pcbRead && cbReadSeg != cbSeg) || rc != VINF_SUCCESS) 173 if (pcbRead) 175 *pcbRead [all...] |
| H A D | vfsbase.cpp | 2047 RTDECL(int) RTVfsIoStrmRead(RTVFSIOSTREAM hVfsIos, void *pvBuf, size_t cbToRead, bool fBlocking, size_t *pcbRead) argument 2049 AssertPtrNullReturn(pcbRead, VERR_INVALID_POINTER); 2050 if (pcbRead) 2051 *pcbRead = 0; 2055 AssertReturn(fBlocking || pcbRead, VERR_INVALID_PARAMETER); 2063 int rc = pThis->pOps->pfnRead(pThis->Base.pvThis, -1 /*off*/, &SgBuf, fBlocking, pcbRead); 2070 bool fBlocking, size_t *pcbRead) 2072 AssertPtrNullReturn(pcbRead, VERR_INVALID_POINTER); 2073 if (pcbRead) 2074 *pcbRead 2069 RTVfsIoStrmReadAt(RTVFSIOSTREAM hVfsIos, RTFOFF off, void *pvBuf, size_t cbToRead, bool fBlocking, size_t *pcbRead) argument 2137 RTVfsIoStrmSgRead(RTVFSIOSTREAM hVfsIos, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 2525 RTVfsFileRead(RTVFSFILE hVfsFile, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument 2566 RTVfsFileReadAt(RTVFSFILE hVfsFile, RTFOFF off, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument [all...] |
| H A D | vfsmemory.cpp | 250 static DECLCALLBACK(int) rtVfsMemFile_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 264 if (pcbRead) 266 *pcbRead = 0; 276 if (!pcbRead) 278 *pcbRead = cbLeftToRead = (size_t)((uint64_t)pThis->Base.ObjInfo.cbObject - offUnsigned); 283 if (pcbRead) 284 *pcbRead = cbLeftToRead;
|
| /vbox/src/VBox/Storage/ |
| H A D | VDIfVfs.cpp | 85 static DECLCALLBACK(int) vdIfVfsIos_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 98 rc = vdIfIoFileReadSync(pThis->pVDIfsIo, pThis->pStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg, pcbRead); 102 if (pcbRead) 103 *pcbRead = RT_SUCCESS(rc) ? pSgBuf->paSegs[0].cbSeg : 0; 107 size_t cbAdvance = pcbRead ? *pcbRead : pSgBuf->paSegs[0].cbSeg; 109 if (pcbRead && !cbAdvance)
|
| H A D | VDVfs.cpp | 224 static DECLCALLBACK(int) vdVfsFile_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 238 if (pcbRead) 240 *pcbRead = 0; 250 if (!pcbRead) 252 *pcbRead = cbLeftToRead = (size_t)(VDGetSize(pThis->pDisk, VD_LAST_IMAGE) - offUnsigned); 257 if (pcbRead) 258 *pcbRead = cbLeftToRead;
|
| /vbox/src/VBox/Main/include/ |
| H A D | GuestFileImpl.h | 58 int i_readData(uint32_t uSize, uint32_t uTimeoutMS, void* pvData, uint32_t cbData, uint32_t* pcbRead); 60 void* pvData, size_t cbData, size_t* pcbRead); 65 int i_waitForRead(GuestWaitEvent *pEvent, uint32_t uTimeoutMS, void *pvData, size_t cbData, uint32_t *pcbRead);
|
| /vbox/src/VBox/Devices/Serial/ |
| H A D | DrvTCP.cpp | 102 static DECLCALLBACK(int) drvTCPRead(PPDMISTREAM pInterface, void *pvBuf, size_t *pcbRead) argument 106 LogFlow(("%s: pvBuf=%p *pcbRead=%#x (%s)\n", __FUNCTION__, pvBuf, *pcbRead, pThis->pszLocation)); 113 unsigned cbBuf = (unsigned)*pcbRead; 130 *pcbRead = cbReallyRead; 135 *pcbRead = 0; 138 LogFlow(("%s: *pcbRead=%zu returns %Rrc\n", __FUNCTION__, *pcbRead, rc));
|
| H A D | DrvNamedPipe.cpp | 101 static DECLCALLBACK(int) drvNamedPipeRead(PPDMISTREAM pInterface, void *pvBuf, size_t *pcbRead) argument 105 LogFlow(("%s: pvBuf=%p *pcbRead=%#x (%s)\n", __FUNCTION__, pvBuf, *pcbRead, pThis->pszLocation)); 114 if (!ReadFile(pThis->NamedPipe, pvBuf, (DWORD)*pcbRead, &cbReallyRead, &pThis->OverlappedRead)) 164 *pcbRead = (size_t)cbReallyRead; 170 cbReallyRead = recv(pThis->LocalSocket, pvBuf, *pcbRead, 0); 182 *pcbRead = cbReallyRead; 188 *pcbRead = 0; 191 LogFlow(("%s: *pcbRead=%zu returns %Rrc\n", __FUNCTION__, *pcbRead, r [all...] |
| /vbox/include/iprt/linux/ |
| H A D | sysfs.h | 105 * @param pcbRead Where to return the number of bytes read. Optional. 107 RTDECL(int) RTLinuxSysFsReadFile(int fd, void *pvBuf, size_t cbBuf, size_t *pcbRead);
|
| /vbox/src/VBox/Debugger/ |
| H A D | DBGCTcp.cpp | 94 * @param pcbRead Where to store the number of bytes actually read. 98 static DECLCALLBACK(int) dbgcTcpBackRead(PDBGCBACK pBack, void *pvBuf, size_t cbBuf, size_t *pcbRead) argument 103 int rc = RTTcpRead(pDbgcTcp->Sock, pvBuf, cbBuf, pcbRead);
|
| /vbox/src/VBox/Devices/Audio/ |
| H A D | AudioMixBuffer.h | 64 int audioMixBufReadAt(PPDMAUDIOMIXBUF pMixBuf, uint32_t offSamples, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead); 65 int audioMixBufReadAtEx(PPDMAUDIOMIXBUF pMixBuf, PDMAUDIOMIXBUFFMT enmFmt, uint32_t offSamples, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead);
|
| /vbox/src/VBox/Runtime/r3/ |
| H A D | fileio.cpp | 201 * @param *pcbRead How much we actually read. 204 RTR3DECL(int) RTFileReadAt(RTFILE File, RTFOFF off, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument 208 rc = RTFileRead(File, pvBuf, cbToRead, pcbRead); 222 * @param pcbRead How much we actually read. 225 RTR3DECL(int) RTFileSgReadAt(RTFILE hFile, RTFOFF off, PRTSGBUF pSgBuf, size_t cbToRead, size_t *pcbRead) argument 236 rc = RTFileReadAt(hFile, off, pvBuf, cbBuf, pcbRead ? &cbThisRead : NULL); 242 && pcbRead)) 249 if (pcbRead) 250 *pcbRead = cbRead;
|
| /vbox/src/VBox/Runtime/r3/posix/ |
| H A D | pipe-posix.cpp | 444 RTDECL(int) RTPipeRead(RTPIPE hPipe, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument 450 AssertPtr(pcbRead); 460 *pcbRead = cbRead; 466 *pcbRead = 0; 478 RTDECL(int) RTPipeReadBlocking(RTPIPE hPipe, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument 510 if (pcbRead) 512 *pcbRead = cbTotalRead;
|