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);
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);