MCPcopy Create free account
hub / github.com/Gecode/gecode / fillBuffer

Method fillBuffer

gecode/flatzinc/parser.hh:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 std::ostream& err;
235
236 int fillBuffer(char* lexBuf, unsigned int lexBufSize) {
237 if (pos >= length)
238 return 0;
239 int num = std::min(length - pos, lexBufSize);
240 memcpy(lexBuf,buf+pos,num);
241 pos += num;
242 return num;
243 }
244
245 void output(std::string x, AST::Node* n) {
246 _output.push_back(std::pair<std::string,AST::Node*>(x,n));

Callers 1

yy_input_procFunction · 0.80

Calls 1

minFunction · 0.50

Tested by

no test coverage detected