To use the node in your project you should have the gabbapeople/simple-byte-protocol library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.
C++ implementation
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
auto _packet = getValue<input_IN>(ctx);
if (_packet.idx >= _packet.bufferSize - 1){
return;
}
_packet.buffer[_packet.idx] = getValue<input_B1>(ctx);
_packet.idx++;
emitValue<output_OUT>(ctx, _packet);
}