2 #ifndef ZIPIOS_COMMON_HPP
3 #define ZIPIOS_COMMON_HPP
70 void operator += (std::vector<Type>& v1, std::vector<Type>
const& v2)
77 v1.reserve(v1.size() + v2.size());
78 v1.insert(v1.end(), v2.begin(), v2.end());
96 void zipRead(std::istream& is, uint32_t& value);
97 void zipRead(std::istream& is, uint16_t& value);
98 void zipRead(std::istream& is, uint8_t& value);
100 void zipRead(std::istream& is, std::string& str, ssize_t
const count);
106 void zipRead(
buffer_t const& is,
size_t& pos, std::string& str, ssize_t
const count);
108 void zipWrite(std::ostream& os, uint32_t
const& value);
109 void zipWrite(std::ostream& os, uint16_t
const& value);
110 void zipWrite(std::ostream& os, uint8_t
const& value);
112 void zipWrite(std::ostream& os, std::string
const& str);
void zipRead(std::istream &is, uint32_t &value)
void operator+=(std::vector< Type > &v1, std::vector< Type > const &v2)
Contatenate two vectors together.
void zipWrite(std::ostream &os, uint32_t const &value)
char const g_separator
The character used as the filename separator.
std::vector< unsigned char > buffer_t
A buffer of characters.
zipios configuration header.
std::ostringstream OutputStringStream
An output stream using strings.