Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::utils::file Namespace Reference

Functions

int open_read_only (const char *path)
 Opens a file for reading (binary, close-on-exec); -1 on failure.
 
int close (int fd)
 
long long pread (int fd, void *buf, size_t count, long long offset)
 Reads up to count bytes at offset (64-bit on every platform); -1 on error.
 

Function Documentation

◆ close()

int orbit::utils::file::close ( int  fd)
inline

◆ open_read_only()

int orbit::utils::file::open_read_only ( const char *  path)
inline

Opens a file for reading (binary, close-on-exec); -1 on failure.

◆ pread()

long long orbit::utils::file::pread ( int  fd,
void *  buf,
size_t  count,
long long  offset 
)
inline

Reads up to count bytes at offset (64-bit on every platform); -1 on error.