Medo42/Faucet-Networking-Extension — Issue #2: writing multiple values in one call
Author: Medo42
Created: 2011-12-22 15:17:51+00:00
State: open

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 :)