How do I split a ushort into two byte variables in C#?
I tried the following (package.FrameID is ushort):
When I try to calculate this with paper&pencil I ge
Use BitConverter
var bytes = BitConverter.GetBytes(package.FrameID);