MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / read_string

Function read_string

samples/zlib/iostream2/zstream.h:145–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145inline char* read_string(izstream& zs) {
146 zstringlen len(zs);
147 char* x = new char[len.value()+1];
148 ::gzread(zs.fp(), x, len.value());
149 x[len.value()] = '\0';
150 return x;
151}
152
153// ----------------------------- ozstream -----------------------------
154

Callers 1

mainFunction · 0.70

Calls 2

valueMethod · 0.45
fpMethod · 0.45

Tested by 1

mainFunction · 0.56