Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::AlignOps Class Reference

Alignment operations. More...

#include <align_ops.h>

Static Public Member Functions

static size_t max_alignment ()
 Get maximum alignment for current platform. More...
 
static size_t align_max (size_t size)
 Return size aligned to maximum alignment. More...
 
static size_t align_as (size_t size, size_t alignment)
 Return size aligned to given alignment. More...
 
static size_t pad_max (size_t size)
 Return padding needed for maximum alignment. More...
 
static size_t pad_as (size_t size, size_t alignment)
 Return padding needed for given alignment. More...
 

Detailed Description

Alignment operations.

Definition at line 28 of file align_ops.h.

Member Function Documentation

◆ align_as()

static size_t roc::core::AlignOps::align_as ( size_t  size,
size_t  alignment 
)
static

Return size aligned to given alignment.

◆ align_max()

static size_t roc::core::AlignOps::align_max ( size_t  size)
static

Return size aligned to maximum alignment.

◆ max_alignment()

static size_t roc::core::AlignOps::max_alignment ( )
static

Get maximum alignment for current platform.

◆ pad_as()

static size_t roc::core::AlignOps::pad_as ( size_t  size,
size_t  alignment 
)
static

Return padding needed for given alignment.

◆ pad_max()

static size_t roc::core::AlignOps::pad_max ( size_t  size)
static

Return padding needed for maximum alignment.


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