Wwise Audio Tools  0.5.2
Tools for working with Wwise file types
wwtools::util::write Namespace Reference

helper functions for writing data More...

Functions

template<typename T >
void big_endian (const char *data, std::ostream &os)
 write data in reverse More...
 
template<typename T >
void big_endian (const T &data, std::ostream &os)
 write data of a certain type in reverse order More...
 
template<typename T >
void little_endian (const char *data, std::ostream &os)
 write data to a stream More...
 
template<typename T >
void little_endian (const T &data, std::ostream &os)
 write data of a certain type to a stream More...
 
void raw_data (const char *data, size_t size, std::ostream &os)
 wrapper around os::write More...
 

Detailed Description

helper functions for writing data

Function Documentation

◆ big_endian() [1/2]

template<typename T >
void wwtools::util::write::big_endian ( const char *  data,
std::ostream &  os 
)
inline

write data in reverse

Template Parameters
Ttype to detect size of data
Parameters
datadata to be written
osostream to write data

◆ big_endian() [2/2]

template<typename T >
void wwtools::util::write::big_endian ( const T &  data,
std::ostream &  os 
)
inline

write data of a certain type in reverse order

Template Parameters
Ttype for data and size
Parameters
datadata to be written
oslocation for data to be written

◆ little_endian() [1/2]

template<typename T >
void wwtools::util::write::little_endian ( const char *  data,
std::ostream &  os 
)
inline

write data to a stream

Template Parameters
Ttype do determine size of data
Parameters
datadata to be written
oslocation for data to be written

◆ little_endian() [2/2]

template<typename T >
void wwtools::util::write::little_endian ( const T &  data,
std::ostream &  os 
)
inline

write data of a certain type to a stream

Template Parameters
Ttype for data and size
Parameters
datadata to be written
oslocation for data to be written

◆ raw_data()

void wwtools::util::write::raw_data ( const char *  data,
size_t  size,
std::ostream &  os 
)
inline

wrapper around os::write

Parameters
datadata to be written
sizethe size of the data
osoutput stream to write to