byte[] getBytes() {
			byte[] buf = this.buf;
			int count = this.count;

			// If the size is a match we do not need to do a copy operation
			if (count == buf.length)
				return buf;

			// Cut buffer down to expected size
			return Arrays.copyOfRange(buf, 0, count);
		}
Non thread-safe alternative to {@link #toByteArray()} that skips array copying when possible.

@return Content of this stream.
recaf-core/src/main/java/software/coley/recaf/util/IOUtil.java