Benefits of using net.Write<Some Type> over net.WriteType?
3 replies, posted
Hello!
I happened to come across net.WriteType today (I'm not sure how I managed to miss it beforehand).
As such, I have a question - is there a reason to not use net.WriteType over net.WriteBool / net.WriteString / net.WriteTable etc?
Is it less efficient? Does it cause issues in certain use cases? I'm unclear, and as far as I can tell there is no answer on the forums or in the wiki as of yet.
Thanks in advance!
The difference is right there on the wiki page of the function, I guess I will make it more apparent.
Sorry I'm looking at the wiki page revisions and I don't see the internal warning on the previous revisions (the pre-your edit ones).
But thanks, that cleared it up for me.
You're just saving writing unnecessary bites when sending a message, it's always a good practice for nowadays
Sorry, you need to Log In to post a reply to this thread.