@Override
	public int read() throws IOException {
		if (!ensureChunkAvailable()) {
			return -1;
		}
		byte b = currentChunk[chunkPos];
		chunkPos++;

		return Byte.toUnsignedInt(b);
	}
Implements an InputStream compatible read()

@return The value of the next byte in the stream
@throws IOException If there is a read failure of the data
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/cart/CartV1StreamProcessor.java