Flytext, System, Comms now use ProsePackages

This commit is contained in:
Treeku
2014-04-13 00:27:02 +01:00
parent 0023848113
commit eeb1ea54af
17 changed files with 338 additions and 372 deletions
+6 -1
View File
@@ -65,7 +65,12 @@ public abstract class Delta implements IDelta {
}
public static IoBuffer createBuffer(int size) {
return bufferPool.allocate(size, false).order(ByteOrder.LITTLE_ENDIAN);
return IoBuffer.allocate(size, false).order(ByteOrder.LITTLE_ENDIAN);
}
public static IoBuffer resizeBuffer(IoBuffer buffer) {
int size = buffer.position();
return buffer == null ? createBuffer(0) : createBuffer(size).put(buffer.flip().array(), 0, size).flip();
}
}