Medo42/Faucet-Networking-Extension

writing multiple values in one call

Medo42 opened this issue · 0 comments

Goal: Shorter and faster code
Example: write_ubytes(buffer, 1, 2, 3, 4)
Analysis: In order to actually save on dll calls, this requires a way to transfer a varying number of values to the C code. Since all parameters are real valued regardless of the target data type, a single function for every parameter count together with a constant indicating the desired type would be enough:
write_numbers_4(buffer, type_ubyte, 1, 2, 3, 4)

More investigation is needed :)