- Joined
- Feb 22, 2006
- Messages
- 960
Hi you out there.
I was borred so I created a small library named: ByteFunctions, which I may also update in the future.
Currently contains:
IntToByte
ByteToInt
Like the function names allready show those are casting functions. Since galaxy doesn't allow array parameters I used a small work-arround by just using a global byte-array called tmpByte... so if one calls IntToByte tmpByte is set to the value, you can access the variable for future usage. If on calls ByteToInt the function uses tmpByte as the byte-array to convert into an integer.
Maybe someone finds any usage in this... since I don't realy use it, but wanted to test how far Galaxy supports byte manipulation.
Feedback also would be nice.
I was borred so I created a small library named: ByteFunctions, which I may also update in the future.
Currently contains:
IntToByte
ByteToInt
Like the function names allready show those are casting functions. Since galaxy doesn't allow array parameters I used a small work-arround by just using a global byte-array called tmpByte... so if one calls IntToByte tmpByte is set to the value, you can access the variable for future usage. If on calls ByteToInt the function uses tmpByte as the byte-array to convert into an integer.
Maybe someone finds any usage in this... since I don't realy use it, but wanted to test how far Galaxy supports byte manipulation.
Feedback also would be nice.