Function craw

Summary

#include <src/c4/format.hpp>

(1) const_raw_wrapper craw(cblob data, size_t alignment=alignof(max_align_t))

(2) template <class T>
    const_raw_wrapper craw(T const &C4_RESTRICT data, size_t alignment=alignof(T))

Function overload

Synopsis

#include <src/c4/format.hpp>

const_raw_wrapper craw(cblob data, size_t alignment=alignof(max_align_t))

Description

mark a variable to be written in raw binary format, using memcpy

See
blob_

Mentioned in

Source

Lines 306-309 in src/c4/format.hpp.

inline const_raw_wrapper craw(cblob data, size_t alignment=alignof(max_align_t))
{
    return const_raw_wrapper(data, alignment);
}

Synopsis

#include <src/c4/format.hpp>

template <class T>
const_raw_wrapper craw(T const &C4_RESTRICT data, size_t alignment=alignof(T))

Description

mark a variable to be written in raw binary format, using memcpy

See
blob_

Mentioned in

Source

Lines 318-322 in src/c4/format.hpp.

template<class T>
inline const_raw_wrapper craw(T const& C4_RESTRICT data, size_t alignment=alignof(T))
{
    return const_raw_wrapper(cblob(data), alignment);
}





Add Discussion as Guest

Log in