@Override
	public byte[] getBytes() throws MemoryAccessException {
		validate(lock);
		byte localBytes[] = populateByteArray();
		int locallen = getLength();
		if (localBytes.length >= locallen) {
			byte[] b = new byte[locallen];
			System.arraycopy(localBytes, 0, b, 0, b.length);
			return b;
		}

		int len = getLength();
		byte[] b = new byte[len];

		if (program.getMemory().getBytes(address, b) != len) {
			throw new MemoryAccessException("Couldn't get all bytes for CodeUnit");
		}
		return b;
	}
@see ghidra.program.model.listing.CodeUnit#addOperandReference(int,
     ghidra.program.model.address.Address,
     ghidra.program.model.symbol.RefType, SourceType)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/CodeUnitDB.java