30 HANDLE get()
const {
return m_impl.get(); }
31 HANDLE ptr()
const {
return get(); }
33 explicit operator HANDLE()
const {
return ptr(); }
35 bool is_valid()
const;
36 static bool is_valid(HANDLE);
53 static constexpr std::size_t max_chunk_size = 16 * 1024;
66 void write(
const void* data, std::size_t nb)
const;
77 template <
typename CharT>
78 void write(
const std::basic_string<CharT>& src)
const {
79 write(src.c_str(), src.size() *
sizeof(CharT));
82 void inherit(
bool yes =
true)
const;
83 void dont_inherit()
const { inherit(
false); }
87 void operator()(HANDLE)
const;
90 std::unique_ptr<void, Close> m_impl;
bool read_chunk(Buffer &read_chunk) const
void write(const std::basic_string< CharT > &src) const
void write(const void *data, std::size_t nb) const