MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / engine_input_write

Function engine_input_write

src_cpp/yaafe-python/yaafecoreEngine.cpp:132–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void engine_input_write(void* engine, char* input, double* data, int size, int nbtokens) {
133 Engine* e = static_cast<Engine*>(engine);
134 OutputBuffer* buf = e->getInput(input);
135 if (buf==NULL) {
136 cerr << "ERROR: unknown input " << input << endl;
137 return;
138 }
139 if (size!=buf->info().size) {
140 cerr << "ERROR: invalid input size ! input '" << input << "' has size " << buf->info().size << endl;
141 return;
142 }
143 buf->write(data,nbtokens);
144}
145
146void engine_output_available(void* engine, char* output, int* size, int* tokens) {
147 Engine* e = static_cast<Engine*>(engine);

Callers

nothing calls this directly

Calls 2

getInputMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected