Changed ReadablePacket bitwise calculations to match client.
This commit is contained in:
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -94,7 +94,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -105,9 +105,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -118,13 +118,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -94,7 +94,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -105,9 +105,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -118,13 +118,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -94,7 +94,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -105,9 +105,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -118,13 +118,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -94,7 +94,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -105,9 +105,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -118,13 +118,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -94,7 +94,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -105,9 +105,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -118,13 +118,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -113,7 +113,7 @@ public class ReadablePacket
|
|||||||
public int readShort()
|
public int readShort()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00);
|
| ((_bytes[_position++] & 0xff) << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,9 +124,9 @@ public class ReadablePacket
|
|||||||
public int readInt()
|
public int readInt()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xff) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xff) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000);
|
| ((_bytes[_position++] & 0xff) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,13 +137,13 @@ public class ReadablePacket
|
|||||||
public long readLong()
|
public long readLong()
|
||||||
{
|
{
|
||||||
return (_bytes[_position++] & 0xff) //
|
return (_bytes[_position++] & 0xff) //
|
||||||
| ((_bytes[_position++] << 8) & 0xff00) //
|
| ((_bytes[_position++] & 0xffL) << 8) //
|
||||||
| ((_bytes[_position++] << 16) & 0xff0000) //
|
| ((_bytes[_position++] & 0xffL) << 16) //
|
||||||
| ((_bytes[_position++] << 24) & 0xff000000) //
|
| ((_bytes[_position++] & 0xffL) << 24) //
|
||||||
| (((long) _bytes[_position++] << 32) & 0xff00000000L) //
|
| ((_bytes[_position++] & 0xffL) << 32) //
|
||||||
| (((long) _bytes[_position++] << 40) & 0xff0000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 40) //
|
||||||
| (((long) _bytes[_position++] << 48) & 0xff000000000000L) //
|
| ((_bytes[_position++] & 0xffL) << 48) //
|
||||||
| (((long) _bytes[_position++] << 56) & 0xff00000000000000L);
|
| ((_bytes[_position++] & 0xffL) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user