NuDB Logo

PrevUpHomeNext

posix_file::read

Read data from a location in the file.

void
read(
    std::uint64_t offset,
    void* buffer,
    std::size_t bytes,
    error_code& ec);
Requirements

The file must be open.

Parameters

offset

The position in the file to read from, expressed as a byte offset from the beginning.

buffer

The location to store the data.

bytes

The number of bytes to read.

ec

Set to the error, if any occurred.


PrevUpHomeNext