pread_device


Description:

[ CCode ( array_length_pos = 3.1 , array_length_type = "gsize" ) ]
[ Version ( since = "1.5.21" ) ]
public uint8[] pread_device (string device, int32 count, int64 offset) throws Error

read part of a device

This command lets you read part of a block device. It reads count bytes of device, starting at offset.

This may read fewer bytes than requested. For further details see the pread(2) system call.

See also pread.

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