An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi QuatreHuit-1669,
The closest equivalent would probably be to use BinaryWriter writing into a MemoryStream, or BitConverter for a one-off conversion of a single value into a byte array.
xanatos provided a code example in this thread you can refer to.
Besides,fdmillion wrote a own class to achieve it in this thead which is useful for you.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.