Home | History | Annotate | Download | only in iostream2

Lines Matching refs:zs

115 inline int read(izstream& zs, T* x, Items items) {
116 return ::gzread(zs.fp(), x, items*sizeof(T));
123 inline izstream& operator>(izstream& zs, T& x) {
124 ::gzread(zs.fp(), &x, sizeof(T));
125 return zs;
129 inline zstringlen::zstringlen(izstream& zs) {
130 zs > val.byte;
131 if (val.byte == 255) zs > val.word;
138 inline izstream& operator>(izstream& zs, char* x) {
139 zstringlen len(zs);
140 ::gzread(zs.fp(), x, len.value());
142 return zs;
145 inline char* read_string(izstream& zs) {
146 zstringlen len(zs);
148 ::gzread(zs.fp(), x, len.value());
264 inline int write(ozstream& zs, const T* x, Items items) {
265 return ::gzwrite(zs.fp(), (voidp) x, items*sizeof(T));
272 inline ozstream& operator<(ozstream& zs, const T& x) {
273 ::gzwrite(zs.fp(), (voidp) &x, sizeof(T));
274 return zs;
277 inline zstringlen::zstringlen(ozstream& zs, const char* x) {
279 if (val.word < 255) zs < (val.byte = val.word);
280 else zs < val;
286 inline ozstream& operator<(ozstream& zs, const char* x) {
287 zstringlen len(zs, x);
288 ::gzwrite(zs.fp(), (voidp) x, len.value());
289 return zs;
293 inline ozstream& operator<(ozstream& zs, char* const& x) {
294 return zs < (const char*) x;
302 inline ostream& operator<<(ozstream& zs, const T& x) {
303 zs.os_flush();
304 return zs.os() << x;