Added Waypoint attachments for Mails and renamed OutOfBand to OutOfBandPackage as well as added a decoding method with a new interface

This commit is contained in:
Waverunner
2015-06-19 21:13:52 -04:00
parent 2ff79ceef8
commit c17396951d
13 changed files with 315 additions and 403 deletions
+4 -4
View File
@@ -123,11 +123,11 @@ public class Packet {
public static void addArray(ByteBuffer bb, byte [] b) {
addShort(bb, b.length);
bb.put(b);
bb.order(ByteOrder.LITTLE_ENDIAN).put(b);
}
public static boolean getBoolean(ByteBuffer bb) {
return getByte(bb) == 1 ? true : false;
return getByte(bb) == 1;
}
public static String getAscii(ByteBuffer bb) {
@@ -149,7 +149,7 @@ public class Packet {
bb.get(str);
return new String(str, unicode);
}
public static byte getByte(ByteBuffer bb) {
return bb.get();
}