@Override
	public int getBytes(byte[] b, int offset) {
		validate(lock);
		byte localBytes[] = populateByteArray();
		if (offset >= 0 && (offset + b.length) <= localBytes.length) {
			System.arraycopy(localBytes, offset, b, 0, b.length);
			return b.length;
		}

		try {
			return program.getMemory().getBytes(address.add(offset), b);
		}
		catch (MemoryAccessException | AddressOutOfBoundsException e) {
			return 0;
		}
	}
@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