Objective C BitConverter Equivalent
- by user352891
Hi there, I'm wondering if there is an Objective C equivalent to .Net's BitConverter.GetBytes() method.
For example, in C#, I can write something like this:
byte[] lengthPrefix = BitConverter.GetBytes(message.length);
What would the equivalent be in Objective C?
Some example code would be greatly appreciated.
Thanks in advance.