Go to the source code of this file.
◆ KSI_IO_readFile()
| int KSI_IO_readFile |
( |
FILE * |
f, |
|
|
void * |
buf, |
|
|
size_t |
size, |
|
|
size_t * |
count |
|
) |
| |
Reads size bytes from the file stream.
- Parameters
-
| [in] | f | File descriptor |
| [in] | buf | Pointer to pre-allocated buffer. |
| [in] | size | Size of buf. |
| [out] | count | Output of read bytes. |
- Returns
- The method will return KSI_OK when no error occurred.
◆ KSI_IO_readSocket()
| int KSI_IO_readSocket |
( |
int |
fd, |
|
|
void * |
buf, |
|
|
size_t |
size, |
|
|
size_t * |
count |
|
) |
| |
Reads size bytes from the socket.
- Parameters
-
| [in] | fd | Socket descriptor |
| [in] | buf | Pointer to pre-allocated buffer. |
| [in] | size | Size of buf. |
| [out] | count | Output of read bytes. |
- Returns
- The method will return KSI_OK when no error occurred.