Vowpal Wabbit
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
VW::desired_align Struct Reference

#include <io_buf.h>

Classes

struct  flatbuffer_t
 

Public Types

using align_t = size_t
 

Public Member Functions

 desired_align (align_t align=1, align_t offset=0)
 
bool is_aligned (const void *ptr) const
 

Static Public Member Functions

template<typename T >
static desired_align align_for (align_t offset=0)
 

Public Attributes

align_t align
 
align_t offset
 

Friends

std::ostream & operator<< (std::ostream &os, const desired_align &da)
 

Member Typedef Documentation

◆ align_t

Constructor & Destructor Documentation

◆ desired_align()

VW::desired_align::desired_align ( align_t  align = 1,
align_t  offset = 0 
)
inline

Member Function Documentation

◆ align_for()

template<typename T >
static desired_align VW::desired_align::align_for ( align_t  offset = 0)
inlinestatic

◆ is_aligned()

bool VW::desired_align::is_aligned ( const void *  ptr) const
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const desired_align da 
)
friend

Member Data Documentation

◆ align

align_t VW::desired_align::align

◆ offset

align_t VW::desired_align::offset

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