bytestreamutils.h File Reference

#include <algorithm>
Include dependency graph for bytestreamutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define INCLUDED_BYTESTREAMUTILS_H

Typedefs

typedef signed short int16_t
typedef unsigned short uint16_t
typedef signed int int32_t
typedef unsigned int uint32_t

Functions

template<typename InputStreamType , typename Type >
void istream_read_little_endian (InputStreamType &istream, Type &value)
template<typename InputStreamType , typename Type >
void istream_read_big_endian (InputStreamType &istream, Type &value)
template<typename InputStreamType >
void istream_read_byte (InputStreamType &istream, typename InputStreamType::byte_type &b)
template<typename InputStreamType >
int16_t istream_read_int16_le (InputStreamType &istream)
template<typename InputStreamType >
uint16_t istream_read_uint16_le (InputStreamType &istream)
template<typename InputStreamType >
int32_t istream_read_int32_le (InputStreamType &istream)
template<typename InputStreamType >
uint32_t istream_read_uint32_le (InputStreamType &istream)
template<typename InputStreamType >
float istream_read_float32_le (InputStreamType &istream)
template<typename InputStreamType >
InputStreamType::byte_type istream_read_byte (InputStreamType &istream)

Define Documentation

#define INCLUDED_BYTESTREAMUTILS_H

Definition at line 23 of file bytestreamutils.h.


Typedef Documentation

typedef signed short int16_t

Definition at line 41 of file bytestreamutils.h.

typedef signed int int32_t

Definition at line 47 of file bytestreamutils.h.

typedef unsigned short uint16_t

Definition at line 44 of file bytestreamutils.h.

typedef unsigned int uint32_t

Definition at line 50 of file bytestreamutils.h.


Function Documentation

template<typename InputStreamType , typename Type >
void istream_read_big_endian ( InputStreamType &  istream,
Type &  value 
) [inline]

Definition at line 63 of file bytestreamutils.h.

template<typename InputStreamType >
InputStreamType::byte_type istream_read_byte ( InputStreamType &  istream  )  [inline]

Definition at line 119 of file bytestreamutils.h.

template<typename InputStreamType >
void istream_read_byte ( InputStreamType &  istream,
typename InputStreamType::byte_type &  b 
) [inline]

Definition at line 73 of file bytestreamutils.h.

Referenced by istream_read_zip_version().

template<typename InputStreamType >
float istream_read_float32_le ( InputStreamType &  istream  )  [inline]

Definition at line 111 of file bytestreamutils.h.

References istream_read_little_endian().

template<typename InputStreamType >
int16_t istream_read_int16_le ( InputStreamType &  istream  )  [inline]

Definition at line 79 of file bytestreamutils.h.

References istream_read_little_endian().

Referenced by istream_read_zip_dostime().

template<typename InputStreamType >
int32_t istream_read_int32_le ( InputStreamType &  istream  )  [inline]

Definition at line 95 of file bytestreamutils.h.

References istream_read_little_endian().

template<typename InputStreamType , typename Type >
void istream_read_little_endian ( InputStreamType &  istream,
Type &  value 
) [inline]
template<typename InputStreamType >
uint16_t istream_read_uint16_le ( InputStreamType &  istream  )  [inline]
template<typename InputStreamType >
uint32_t istream_read_uint32_le ( InputStreamType &  istream  )  [inline]

Generated by  doxygen 1.6.2