LLFIO  v2.00
llfio_v2_xxx::byte_io_multiplexer::buffer_type Struct Reference

#include "byte_io_multiplexer.hpp"

Public Types

using pointer = byte *
 Type of the pointer to memory.
 
using const_pointer = const byte *
 Type of the pointer to memory.
 
using iterator = byte *
 Type of the iterator to memory.
 
using const_iterator = const byte *
 Type of the iterator to memory.
 
using size_type = size_t
 Type of the length of memory.
 

Public Member Functions

 buffer_type ()=default
 Default constructor.
 
constexpr buffer_type (pointer data, size_type len) noexcept
 Constructor.
 
template<class T , typename std::enable_if<(!std::is_same< typename std::decay< T >::type, buffer_type >::value &&std::is_constructible< span< byte >, T >::value), bool >::type = true>
constexpr buffer_type (T &&s, _implict_span_constructor_tag={}) noexcept
 Constructor taking any type acceptable to span.
 
 buffer_type (const buffer_type &)=default
 
 buffer_type (buffer_type &&)=default
 
buffer_typeoperator= (const buffer_type &)=default
 
buffer_typeoperator= (buffer_type &&)=default
 
constexpr QUICKCPPLIB_NODISCARD bool empty () const noexcept
 Returns if this buffer is empty.
 
constexpr pointer data () noexcept
 Returns the address of the bytes for this buffer.
 
constexpr const_pointer data () const noexcept
 Returns the address of the bytes for this buffer.
 
constexpr size_type size () const noexcept
 Returns the number of bytes in this buffer.
 
constexpr iterator begin () noexcept
 Returns an iterator to the beginning of the buffer.
 
constexpr const_iterator begin () const noexcept
 Returns an iterator to the beginning of the buffer.
 
constexpr const_iterator cbegin () const noexcept
 Returns an iterator to the beginning of the buffer.
 
constexpr iterator end () noexcept
 Returns an iterator to after the end of the buffer.
 
constexpr const_iterator end () const noexcept
 Returns an iterator to after the end of the buffer.
 
constexpr const_iterator cend () const noexcept
 Returns an iterator to after the end of the buffer.
 

Friends

constexpr friend void _check_iovec_match ()
 

Detailed Description

The scatter buffer type used by this handle. Guaranteed to be TrivialType and StandardLayoutType. Try to make address and length 64 byte, or ideally, page_size() aligned where possible.


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