Device.pread

Read a chunk of bytes from the file from the given offset, into the provided array

class Device
size_t
pread
(
void[] dst
,
off_t offset
)

Parameters

dst void[]

destination buffer to fill

offset off_t

offset to start reading from

Return Value

Type: size_t

number of bytes read or Eof if there's no further data

Throws

File.IOException on failure

Meta