mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-17 21:47:52 +00:00
35 lines
943 B
C#
35 lines
943 B
C#
/* This file is part of libmspack.
|
|
* (C) 2003-2004 Stuart Caie.
|
|
*
|
|
* The Quantum method was created by David Stafford, adapted by Microsoft
|
|
* Corporation.
|
|
*
|
|
* libmspack is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU Lesser General Public License (LGPL) version 2.1
|
|
*
|
|
* For further details, see the file COPYING.LIB distributed with libmspack
|
|
*/
|
|
|
|
namespace LibMSPackSharp.Compression
|
|
{
|
|
public partial class QTM : CompressionStream
|
|
{
|
|
/// <inheritdoc/>
|
|
public override void READ_BYTES()
|
|
{
|
|
READ_IF_NEEDED();
|
|
if (Error != Error.MSPACK_ERR_OK)
|
|
return;
|
|
|
|
byte b0 = InputBuffer[InputPointer++];
|
|
|
|
READ_IF_NEEDED();
|
|
if (Error != Error.MSPACK_ERR_OK)
|
|
return;
|
|
|
|
byte b1 = InputBuffer[InputPointer++];
|
|
INJECT_BITS_MSB((b0 << 8) | b1, 16);
|
|
}
|
|
}
|
|
}
|