number-hex-string

hjlab/hachan-lab1/number-hex-string

No description
number-hex-string
@/number-hex-string
INnumber
number-hex-string
IN
OUT
OUTstring
To use the node in your project you should have the hjlab/hachan-lab1 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

#pragma XOD dirtieness disable

node {
    char str[16];
    CStringView view = CStringView(str);

    void evaluate(Context ctx) {
        auto num = getValue<input_IN>(ctx);
        sprintf(str, "%d", num);
        emitValue<output_OUT>(ctx, XString(&view));
    }
}