@Override
	public void write(int val) {
		int newcount = bytecnt + 1;
		if (newcount > out.length) {
			out = Arrays.copyOf(out, Math.max(out.length << 1, newcount));
		}
		out[bytecnt] = (byte) val;
		bytecnt = newcount;
	}
Dump a single byte to the packed byte stream
@param val is the byte to be written
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/PackedBytes.java