| 1557 | } |
| 1558 | |
| 1559 | UINT8 x86Convert(QByteArray & input, int mode) { |
| 1560 | unsigned char* source = (unsigned char*)input.data(); |
| 1561 | UINT32 sourceSize = input.size(); |
| 1562 | |
| 1563 | UINT32 state; |
| 1564 | x86_Convert_Init(state); |
| 1565 | UINT32 converted = x86_Convert(source, sourceSize, 0, &state, mode); |
| 1566 | |
| 1567 | const UINT8 x86LookAhead = 4; |
| 1568 | if (converted + x86LookAhead != sourceSize) { |
| 1569 | return ERR_INVALID_VOLUME; |
| 1570 | } |
| 1571 | |
| 1572 | return ERR_SUCCESS; |
| 1573 | } |
| 1574 | |
| 1575 | UINT8 FfsEngine::parseSection(const QByteArray & section, QModelIndex & index, const QModelIndex & parent, const UINT8 mode) |
| 1576 | { |
no test coverage detected