public static byte[] readBytes(final DataInput in) throws IOException {
		final int length = readInt(in);
		final byte[] bytes = new byte[length];
		in.readFully(bytes);
		return bytes;
	}
Reads a list of elements from the given data input.

@param reader the element reader
@param in the data input
@param <T> the element type
@return the read element list
@throws NullPointerException if one of the given arguments is {@code null}
@throws IOException if an I/O error occurs
jenetics/src/main/java/io/jenetics/internal/util/SerialIO.java