class file

Declaration

class file { /* full declaration omitted */ };

Declared at: third_party/fmt/include/fmt/os.h:244

Method Overview

  • public void close()
  • public int descriptor() const noexcept
  • public static fmt::file dup(int fd)
  • public void dup2(int fd)
  • public void dup2(int fd, std::error_code & ec) noexcept
  • public fmt::buffered_file fdopen(const char * mode)
  • public file() noexcept
  • public file(fmt::cstring_view path, int oflag)
  • public file(const fmt::file &)
  • public file(fmt::file && other) noexcept
  • public static void pipe(fmt::file & read_end, fmt::file & write_end)
  • public size_t read(void * buffer, size_t count)
  • public long long size() const
  • public size_t write(const void * buffer, size_t count)
  • public ~file() noexcept

Methods

void close()

Declared at: third_party/fmt/include/fmt/os.h:289

int descriptor() const noexcept

Declared at: third_party/fmt/include/fmt/os.h:286

static fmt::file dup(int fd)

Declared at: third_party/fmt/include/fmt/os.h:303

Parameters

int fd

void dup2(int fd)

Declared at: third_party/fmt/include/fmt/os.h:307

Parameters

int fd

void dup2(int fd, std::error_code& ec) noexcept

Declared at: third_party/fmt/include/fmt/os.h:311

Parameters

int fd
std::error_code& ec

fmt::buffered_file fdopen(const char* mode)

Declared at: third_party/fmt/include/fmt/os.h:319

Parameters

const char* mode

file() noexcept

Declared at: third_party/fmt/include/fmt/os.h:263

file(fmt::cstring_view path, int oflag)

Declared at: third_party/fmt/include/fmt/os.h:266

Parameters

fmt::cstring_view path
int oflag

file(const fmt::file&)

Declared at: third_party/fmt/include/fmt/os.h:269

Parameters

const fmt::file&

file(fmt::file&& other) noexcept

Declared at: third_party/fmt/include/fmt/os.h:272

Parameters

fmt::file&& other

static void pipe(fmt::file& read_end,
                 fmt::file& write_end)

Declared at: third_party/fmt/include/fmt/os.h:315

Parameters

fmt::file& read_end
fmt::file& write_end

size_t read(void* buffer, size_t count)

Declared at: third_party/fmt/include/fmt/os.h:296

Parameters

void* buffer
size_t count

long long size() const

Declared at: third_party/fmt/include/fmt/os.h:293

size_t write(const void* buffer, size_t count)

Declared at: third_party/fmt/include/fmt/os.h:299

Parameters

const void* buffer
size_t count

~file() noexcept

Declared at: third_party/fmt/include/fmt/os.h:283