MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / ReverseBytes

Function ReverseBytes

3rdparty/flatbuffers/csharp/ByteBuffer.cs:63–67  ·  view source on GitHub ↗

Helper functions for the unsafe version.

(ushort input)

Source from the content-addressed store, hash-verified

61
62 // Helper functions for the unsafe version.
63 static public ushort ReverseBytes(ushort input)
64 {
65 return (ushort)(((input & 0x00FFU) << 8) |
66 ((input & 0xFF00U) >> 8));
67 }
68 static public uint ReverseBytes(uint input)
69 {
70 return ((input & 0x000000FFU) << 24) |

Callers 3

PutUshortFunction · 0.85
PutUintFunction · 0.85
PutUlongFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected