| Home | Libraries | People | FAQ | More

##### http::basic_file_body::value_type::seek

Set the cursor position of the file.

###### Synopsis

    void
    seek(
        std::uint64_t offset,
        error_code& ec);

###### Description

This function can be used to move the cursor of the file ahead so that only a part gets read. This file will also adjust the `value_type`, in case the file is already part of a body.

###### Parameters

Name | Description
--- | ---
`offset` | The offset in bytes from the beginning of the file
`ec` | Set to the error, if any occurred