LLFIO  v2.00
llfio_v2_xxx::directory_handle::buffers_type Struct Reference

#include "directory_handle.hpp"

Inheritance diagram for llfio_v2_xxx::directory_handle::buffers_type:

Public Types

using _base = span< buffer_type >
 

Public Member Functions

stat_t::want metadata () const noexcept
 
bool done () const noexcept
 Whether the directory was entirely read or not into any buffers supplied.
 
template<class T , typename std::enable_if<(!std::is_same< typename std::decay< T >::type, buffers_type >::value &&std::is_constructible< span< buffer_type >, T >::value), bool >::type = true>
constexpr buffers_type (T &&s, _implict_span_constructor_tag={}) noexcept
 Constructor taking any type acceptable to span.
 
 buffers_type (span< buffer_type > v, buffers_type &&o) noexcept
 Construct from a span, using a kernel buffer from a preceding buffers_type.
 
 buffers_type (buffers_type &&o) noexcept
 Move constructor.
 
 buffers_type (const buffers_type &)=delete
 No copy construction.
 
buffers_typeoperator= (buffers_type &&o) noexcept
 Move assignment.
 
buffers_typeoperator= (const buffers_type &)=delete
 No copy assignment.
 

Friends

class directory_handle
 

Detailed Description

The buffers type used by this handle, which is a contiguous sequence of directory_entry.

Warning
Unless you supply your own kernel buffer, you need to keep this around as long as you use any of the directory entries, as their leafnames are views of the original buffer filled by the kernel and the existence of this keeps that original buffer around.

Member Function Documentation

◆ metadata()

stat_t::want llfio_v2_xxx::directory_handle::buffers_type::metadata ( ) const
inlinenoexcept

The list of stat metadata retrieved. Sometimes, due to kernel API design, enumerating a directory retrieves more than the metadata requested in the read request. This indidicates what stat metadata is in the buffers filled.

114 { return _metadata; }

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