OpenVPN 3 Core Library
Loading...
Searching...
No Matches
file.hpp File Reference
#include <string>
#include <fstream>
#include <iostream>
#include <cstdint>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/unicode.hpp>
#include <openvpn/buffer/buffer.hpp>
#include <openvpn/buffer/bufstr.hpp>
#include <openvpn/buffer/buflist.hpp>
Include dependency graph for file.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openvpn
 

Functions

 openvpn::OPENVPN_UNTAGGED_EXCEPTION (file_exception)
 
 openvpn::OPENVPN_UNTAGGED_EXCEPTION_INHERIT (file_exception, open_file_error)
 
 openvpn::OPENVPN_UNTAGGED_EXCEPTION_INHERIT (file_exception, file_too_large)
 
 openvpn::OPENVPN_UNTAGGED_EXCEPTION_INHERIT (file_exception, file_is_binary)
 
 openvpn::OPENVPN_UNTAGGED_EXCEPTION_INHERIT (file_exception, file_not_utf8)
 
std::string openvpn::read_text_simple (const std::string &filename)
 
BufferPtr openvpn::read_binary (const std::string &filename, const std::uint64_t max_size=0, const BufferFlags buffer_flags=BufAllocFlags::NO_FLAGS)
 
BufferPtr openvpn::read_binary_linear (const std::string &filename, const std::uint64_t max_size=0, const size_t block_size=1024)
 
std::string openvpn::read_text (const std::string &filename, const std::uint64_t max_size=0)
 
std::string openvpn::read_text_utf8 (const std::string &filename, const std::uint64_t max_size=0)
 
std::string openvpn::read_stdin ()
 
void openvpn::write_binary (const std::string &filename, const Buffer &buf)
 
template<typename BUFLIST >
void openvpn::write_binary_list (const std::string &filename, const BUFLIST &buflist)
 
void openvpn::write_string (const std::string &filename, const std::string &str)