MCPcopy Create free account
hub / github.com/LongSoft/UEFITool / x86Convert

Function x86Convert

ffsengine.cpp:1559–1573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1557}
1558
1559UINT8 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
1575UINT8 FfsEngine::parseSection(const QByteArray & section, QModelIndex & index, const QModelIndex & parent, const UINT8 mode)
1576{

Callers 2

parseSectionMethod · 0.85
reconstructSectionMethod · 0.85

Calls 2

x86_ConvertFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected