/** Read the given byte buffer into a Byte array */ public static byte[] readBytes(ByteBuffer buffer) { return Utils.readBytes(buffer, 0, buffer.limit()); }