• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[SC2Library] ByteFunctions

Status
Not open for further replies.
Level 16
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.
 

Attachments

  • ByteFunctions.zip
    1.8 KB · Views: 59
Status
Not open for further replies.
Top