public int getRowForBytePos(long selectedByte) {

		int totalLines = 0;

		Iterator<Chunk> iter = this.iterator();
		while (iter.hasNext()) {
			Chunk chunk = iter.next();
			
			// See if this byte is in this chunk before doing anything.
			if (selectedByte >= chunk.start && selectedByte <= chunk.end) {	
				
				// We know our byte is in this chunk, so now find out exactly which row it's in.
				for (Map.Entry<Integer, Pair> entry : chunk.rowToFilePositionMap.entrySet()) {
					Integer key = entry.getKey();
					Pair value = entry.getValue();
					if (selectedByte >= value.getStart() && selectedByte <= value.getEnd()) {
						return key + totalLines;
					}
				}
			}

			totalLines += chunk.linesInChunk;
		}

		return -1;
	}
Searches the visible chunks to see if any of them contain the given byte. If so, returns
the row in the table where it resides. Returns -1 otherwise.

@param selectedByte
@return
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/model/ChunkModel.java