#include <algorithm>
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 INCLUDED_BYTESTREAMUTILS_H |
Definition at line 23 of file bytestreamutils.h.
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.
void istream_read_big_endian | ( | InputStreamType & | istream, | |
Type & | value | |||
) | [inline] |
Definition at line 63 of file bytestreamutils.h.
InputStreamType::byte_type istream_read_byte | ( | InputStreamType & | istream | ) | [inline] |
Definition at line 119 of file bytestreamutils.h.
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().
float istream_read_float32_le | ( | InputStreamType & | istream | ) | [inline] |
Definition at line 111 of file bytestreamutils.h.
References istream_read_little_endian().
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().
int32_t istream_read_int32_le | ( | InputStreamType & | istream | ) | [inline] |
Definition at line 95 of file bytestreamutils.h.
References istream_read_little_endian().
void istream_read_little_endian | ( | InputStreamType & | istream, | |
Type & | value | |||
) | [inline] |
Definition at line 54 of file bytestreamutils.h.
Referenced by istream_read_float32_le(), istream_read_int16_le(), istream_read_int32_le(), istream_read_uint16_le(), and istream_read_uint32_le().
uint16_t istream_read_uint16_le | ( | InputStreamType & | istream | ) | [inline] |
Definition at line 87 of file bytestreamutils.h.
References istream_read_little_endian().
Referenced by istream_read_zip_disk_trailer(), istream_read_zip_file_header(), and istream_read_zip_root_dirent().
uint32_t istream_read_uint32_le | ( | InputStreamType & | istream | ) | [inline] |
Definition at line 103 of file bytestreamutils.h.
References istream_read_little_endian().
Referenced by istream_read_zip_disk_trailer(), istream_read_zip_file_header(), istream_read_zip_file_trailer(), and istream_read_zip_root_dirent().