Frederic Torres Blog
Tuesday, January 19, 2016
C# unsafe pointer - how to do it?
unsafe { ushort val; byte* valPtr = (byte*) &val; valPtr[1] = bigEndianFirstByte; valPtr[0] = bigEndianSecondByte; // use val here }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment