MCPcopy Create free account
hub / github.com/THUNLP-MT/MEAN / read

Method read

evaluation/TMscore.cpp:2169–2182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2167 */
2168 template <typename C, typename T>
2169 inline std::streamsize
2170 basic_pstreambuf<C,T>::read(char_type* s, std::streamsize n)
2171 {
2172 std::streamsize nread = 0;
2173 if (rpipe() >= 0)
2174 {
2175 nread = ::read(rpipe(), s, n * sizeof(char_type));
2176 if (nread == -1)
2177 error_ = errno;
2178 else
2179 nread /= sizeof(char_type);
2180 }
2181 return nread;
2182 }
2183
2184 /** @return a reference to the output file descriptor */
2185 template <typename C, typename T>

Callers 7

load_fileFunction · 0.80
exec_mmseqFunction · 0.80
mainFunction · 0.80
download_one_item_localFunction · 0.80
preprocessMethod · 0.80
sidechain_opt_pred_ddgFunction · 0.80
tm_scoreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected