Posted 25 February 2013 - 01:39 AM
Tables, functions, etc. in lua are pointers that refer to a memory slot, therefor they should be saved as binary code.
What i've been searching for is a way to "read" that pointer as an array of bytes, but i haven't found any solutions for this anywhere (even not in the lua users forum).
I want to use this for example to send and receive tables and functions, as bytes are numbers and you can send or receive them via rednet or redpower bundled cables…
I hope anyone knows if or how this is possible…:D/>
-JokerRH
What i've been searching for is a way to "read" that pointer as an array of bytes, but i haven't found any solutions for this anywhere (even not in the lua users forum).
I want to use this for example to send and receive tables and functions, as bytes are numbers and you can send or receive them via rednet or redpower bundled cables…
I hope anyone knows if or how this is possible…:D/>
-JokerRH