@Override
	public long getOffset(int index, BinaryReader reader) throws IOException {
		if (index < 0 || addrCount <= index) {
			throw new IOException("Invalid address index: %d".formatted(index));
		}
		long offset = firstElementOffset + (addressSize + segmentSelectorSize) * index;

		@SuppressWarnings("unused")
		long seg =
			segmentSelectorSize > 0 ? reader.readUnsignedValue(offset, segmentSelectorSize) : 0;

		long addr = reader.readUnsignedValue(offset + segmentSelectorSize, addressSize);
		return addr;
	}
Reads a {@link DWARFAddressListHeader} from the stream.

@param reader {@link BinaryReader} stream
@param defaultIntSize native int size for the binary
@return {@link DWARFAddressListHeader}, or null if end-of-list marker
@throws IOException if error reading
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DWARFAddressListHeader.java