@Nonnull
	@Override
	public byte[] readAll() throws IOException {
		MemorySegment data = this.data;
		if (data.byteSize() > Integer.MAX_VALUE - 8) {
			throw new IOException("Too large content");
		}
		return data.toArray(ValueLayout.JAVA_BYTE);
	}
@param data
		Data to read bytes from.
recaf-core/src/main/java/software/coley/recaf/util/io/MemorySegmentDataSource.java