getIdByPosOff static method

(int, String, MobiAttrType) getIdByPosOff(
  1. MobiRawml rawml,
  2. int posFid,
  3. int posOff,
  4. MobiAttrType prefAttr,
)

Implementation

static (int, String, MobiAttrType) getIdByPosOff(
    MobiRawml rawml, int posFid, int posOff, MobiAttrType prefAttr) {
  var (offset, fileNumber) = getOffSetByPosOff(rawml, posFid, posOff);
  MobiPart html = getPartByUid(rawml, fileNumber);
  var (id, prefAttr2) = getIdByOffset(html, offset, prefAttr);
  return (fileNumber, id, prefAttr2);
}