Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public unsafe class BitConverter
- {
- public static uint ReadUint(byte[] buffer, int offset)
- {
- fixed (byte* Buffer = buffer)
- {
- return *((uint*)(Buffer + offset));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement