@Override
	public byte[] getBytes() throws MemoryAccessException {
		lock.acquire();
		try {
			checkIsValid();
			byte[] b = new byte[length];
			if (parent.getBytes(b, this.offset) != length) {
				throw new MemoryAccessException("Couldn't get all bytes for CodeUnit");
			}
			return b;
		}
		finally {
			lock.release();
		}
	}
Constructs a new {@link DataComponent} for an {@link Array} element.
@param codeMgr the code manager.
@param componentCache data component cache
@param address the address of the data component
@param addr the convert address long value
@param parent the DataDB object that contains this component.
@param array the array containing this component.
@param ordinal the array index for this component.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/DataComponent.java