MCPcopy Create free account
hub / github.com/clementgallet/libTAS / offsetToPosition

Function offsetToPosition

src/external/qhexview/src/model/qhexutils.cpp:315–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 return options->linelength * pos.line + pos.column;
314}
315QHexPosition offsetToPosition(const QHexOptions* options, qint64 offset) {
316 return {offset / options->linelength, offset % options->linelength};
317}
318
319QPair<qint64, qint64> find(const QHexView* hexview, QVariant value,
320 qint64 startoffset, QHexFindMode mode,

Callers 1

offsetToPositionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected