private static BlobHeader readBlobHeader(FileChannel channel) throws IOException {
    int headerSize = readInt(channel);
    if (headerSize > 64 * 1024) {
      throw new IllegalArgumentException("Header longer than 64 KiB");
    }
    byte[] headerBytes = readBytes(channel, headerSize);
    return BlobHeader.parseFrom(headerBytes);
  }
Creates a new OSM input file reader.

@param path      Path to the file
@param lazyReads If {@code true}, defers reading the actual content of each block from disk until the block is
                 decoded in a worker thread.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/osm/OsmInputFile.java