libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ afc_file_read()

afc_error_t afc_file_read ( afc_client_t  client,
uint64_t  handle,
char *  data,
uint32_t  length,
uint32_t *  bytes_read 
)

Attempts to the read the given number of bytes from the given file.

Parameters
clientThe relevant AFC client
handleFile handle of a previously opened file
dataThe pointer to the memory region to store the read data
lengthThe number of bytes to read
bytes_readThe number of bytes actually read.
Returns
AFC_E_SUCCESS on success or an AFC_E_* error value.