mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-21 23:48:22 +08:00
27 lines
947 B
C
27 lines
947 B
C
|
/* utility.h
|
||
|
|
||
|
Copyright (c) 2015, Nikolaj Schlej. All rights reserved.
|
||
|
This program and the accompanying materials
|
||
|
are licensed and made available under the terms and conditions of the BSD License
|
||
|
which accompanies this distribution. The full text of the license may be found at
|
||
|
http://opensource.org/licenses/bsd-license.php
|
||
|
|
||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||
|
|
||
|
*/
|
||
|
#include <QString>
|
||
|
#include "basetypes.h"
|
||
|
|
||
|
// Converts error code to QString
|
||
|
extern QString errorCodeToQString(UINT8 errorCode);
|
||
|
|
||
|
// Decompression routine
|
||
|
extern STATUS decompress(const QByteArray & compressed, UINT8 & algorithm, QByteArray & decompressed);
|
||
|
|
||
|
// Compression routine
|
||
|
//STATUS compress(const QByteArray & decompressed, QByteArray & compressed, const UINT8 & algorithm);
|
||
|
|
||
|
// CRC32
|
||
|
extern UINT32 crc32(UINT32 initial, const UINT8* buffer, UINT32 length);
|