2 #ifndef ZIPIOS_COMMON_HPP 3 #define ZIPIOS_COMMON_HPP 39 #if defined( ZIPIOS_WINDOWS ) 40 typedef int32_t ssize_t;
75 void operator += (std::vector<Type> & v1, std::vector<Type>
const & v2)
82 v1.reserve(v1.size() + v2.size());
83 v1.insert(v1.end(), v2.begin(), v2.end());
101 void zipRead(std::istream & is, uint32_t & value);
102 void zipRead(std::istream & is, uint16_t & value);
103 void zipRead(std::istream & is, uint8_t & value);
104 void zipRead(std::istream & is,
buffer_t & buffer, ssize_t
const count);
105 void zipRead(std::istream & is, std::string & str, ssize_t
const count);
111 void zipRead(
buffer_t const & is,
size_t & pos, std::string & str, ssize_t
const count);
113 void zipWrite(std::ostream & os, uint32_t
const & value);
114 void zipWrite(std::ostream & os, uint16_t
const & value);
115 void zipWrite(std::ostream & os, uint8_t
const & value);
117 void zipWrite(std::ostream & os, std::string
const & str);
The zipios namespace includes the Zipios library definitions.
void zipRead(std::istream &is, uint32_t &value)
void operator+=(std::vector< Type > &v1, std::vector< Type > const &v2)
Concatenate 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.