FlatBuffers.ByteBuffer.ReverseBytes C# (CSharp) Method

ReverseBytes() static public method

static public ReverseBytes ( ulong input ) : ulong
input ulong
return ulong
        static public ulong ReverseBytes(ulong input)
        {
            return (((input & 0x00000000000000FFUL) << 56) |
                    ((input & 0x000000000000FF00UL) << 40) |
                    ((input & 0x0000000000FF0000UL) << 24) |
                    ((input & 0x00000000FF000000UL) <<  8) |
                    ((input & 0x000000FF00000000UL) >>  8) |
                    ((input & 0x0000FF0000000000UL) >> 24) |
                    ((input & 0x00FF000000000000UL) >> 40) |
                    ((input & 0xFF00000000000000UL) >> 56));
        }

Same methods

ByteBuffer::ReverseBytes ( uint input ) : uint
ByteBuffer::ReverseBytes ( ushort input ) : ushort