pread
Description:
[ CCode ( array_length_pos = 3.1 , array_length_type = "gsize" ) ]
[ Version ( since = "1.0.77" ) ]
public uint8[] pread (string path, int32 count, int64 offset) throws Error
[ Version ( since = "1.0.77" ) ]
public uint8[] pread (string path, int32 count, int64 offset) throws Error
read part of a file
This command lets you read part of a file. It reads count
bytes of the file, starting at offset
, from file path
.
This may read fewer bytes than requested. For further details see the pread(2) system call.
See also pwrite, pread_device.
Parameters:
this |
A GuestfsSession object |
size_r |
The size of the returned buffer, in bytes |
Returns:
an array of binary data, or NULL on error |