| 310 | |
| 311 | QByteArray toHex(const QByteArray& ba) { return QHexUtils::toHex(ba, '\0'); } |
| 312 | qint64 positionToOffset(const QHexOptions* options, QHexPosition pos) { |
| 313 | return options->linelength * pos.line + pos.column; |
| 314 | } |
| 315 | QHexPosition offsetToPosition(const QHexOptions* options, qint64 offset) { |
| 316 | return {offset / options->linelength, offset % options->linelength}; |
| 317 | } |
no outgoing calls
no test coverage detected