LLFIO  v2.00
llfio_v2_xxx::directory_handle::io_request< class > Struct Template Reference

The i/o request type used by this handle. More...

#include "directory_handle.hpp"

Public Member Functions

 io_request (buffers_type _buffers, path_view_type _glob={}, filter _filtering=filter::fastdeleted, span< char > _kernelbuffer={})
 
 io_request (buffers_type _buffers, _flags_type _flags, path_view_type _glob={}, filter _filtering=filter::fastdeleted, span< char > _kernelbuffer={})
 

Public Attributes

buffers_type buffers {}
 
path_view_type glob {}
 
_flags_type flags {_flags_type::none}
 
filter filtering {filter::fastdeleted}
 
span< char > kernelbuffer {}
 

Detailed Description

template<class>
struct llfio_v2_xxx::directory_handle::io_request< class >

The i/o request type used by this handle.

Constructor & Destructor Documentation

◆ io_request() [1/2]

template<class >
llfio_v2_xxx::directory_handle::io_request< class >::io_request ( buffers_type  _buffers,
path_view_type  _glob = {},
filter  _filtering = filter::fastdeleted,
span< char >  _kernelbuffer = {} 
)
inline

Construct a request to enumerate a directory with optionally specified kernel buffer.

Parameters
_buffersThe buffers to fill with enumerated directory entries.
_globAn optional shell glob by which to filter the items filled. Done kernel side on Windows, user side on POSIX.
_filteringWhether to filter out fake-deleted files on Windows or not.
_kernelbufferA buffer to use for the kernel to fill. If left defaulted, a kernel buffer is allocated internally and returned in the buffers returned which needs to not be destructed until one is no longer using any items within (leafnames are views onto the original kernel data).
221  {}, filter _filtering = filter::fastdeleted, span<char> _kernelbuffer = {})
222  : buffers(std::move(_buffers))
223  , glob(_glob)
224  , filtering(_filtering)
225  , kernelbuffer(_kernelbuffer)
226  {
227  }
filter
How to do deleted file elimination on Windows.
Definition: directory_handle.hpp:199
@ fastdeleted
For Windows without POSIX delete semantics, filter out LLFIO deleted files based on their filename (f...

◆ io_request() [2/2]

template<class >
llfio_v2_xxx::directory_handle::io_request< class >::io_request ( buffers_type  _buffers,
_flags_type  _flags,
path_view_type  _glob = {},
filter  _filtering = filter::fastdeleted,
span< char >  _kernelbuffer = {} 
)
inline

Construct a request to enumerate a directory with optionally specified kernel buffer.

Parameters
_buffersThe buffers to fill with enumerated directory entries.
_flagsWhat flags to apply to the enumeration.
_globAn optional shell glob by which to filter the items filled. Done kernel side on Windows, user side on POSIX.
_filteringWhether to filter out fake-deleted files on Windows or not.
_kernelbufferA buffer to use for the kernel to fill. If left defaulted, a kernel buffer is allocated internally and returned in the buffers returned which needs to not be destructed until one is no longer using any items within (leafnames are views onto the original kernel data).
238  {}, filter _filtering = filter::fastdeleted,
239  span<char> _kernelbuffer = {})
240  : buffers(std::move(_buffers))
241  , glob(_glob)
242  , flags(_flags)
243  , filtering(_filtering)
244  , kernelbuffer(_kernelbuffer)
245  {
246  }

The documentation for this struct was generated from the following file: