mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
cosmetics (or not)
This commit is contained in:
@@ -43,16 +43,16 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
private static byte[] ulongToByteArray(ulong uLongValue)
|
||||
{
|
||||
// Reverse endianness of RegionHandle
|
||||
return new byte[]
|
||||
return new byte[8]
|
||||
{
|
||||
(byte)((uLongValue >> 56) % 256),
|
||||
(byte)((uLongValue >> 48) % 256),
|
||||
(byte)((uLongValue >> 40) % 256),
|
||||
(byte)((uLongValue >> 32) % 256),
|
||||
(byte)((uLongValue >> 24) % 256),
|
||||
(byte)((uLongValue >> 16) % 256),
|
||||
(byte)((uLongValue >> 8) % 256),
|
||||
(byte)(uLongValue % 256)
|
||||
(byte)((uLongValue >> 56) & 0xff),
|
||||
(byte)((uLongValue >> 48) & 0xff),
|
||||
(byte)((uLongValue >> 40) & 0xff),
|
||||
(byte)((uLongValue >> 32) & 0xff),
|
||||
(byte)((uLongValue >> 24) & 0xff),
|
||||
(byte)((uLongValue >> 16) & 0xff),
|
||||
(byte)((uLongValue >> 8) & 0xff),
|
||||
(byte)(uLongValue & 0xff)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user