On Tuesday 14, Digital wrote:
Alright, I added it.
But even before it gets to that it will error out by saying "string
expected, got userdata" ??
How are you creating the binary data?
Also be careful how you call the 'testfunc' from Lua
somevar = require "modulename"
data = "binary data" -- how is this data created?
somevar.testfunc(data) -- here it will have only one parameter: data
somevar:testfunc(data) -- here it will have two parameters: somevar & data
------------^ note the ":" instead of "."
If somevar is a userdata value then that might be why you are getting that
error.