Do bulk replace of stl types.
This commit is contained in:
parent
521486be62
commit
c25a56ee19
531 changed files with 2274 additions and 2181 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
#include "HuffmanTree.h"
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "Vector.h"
|
||||
#include "String.h"
|
||||
#include <optional>
|
||||
|
||||
class BitStream;
|
||||
|
@ -15,7 +15,7 @@ public:
|
|||
|
||||
void buildCompressedLengthSequence();
|
||||
|
||||
std::string dumpPrefixCodes() const;
|
||||
String dumpPrefixCodes() const;
|
||||
|
||||
std::optional<HuffmanTree::Symbol> findMatch(std::size_t treeIndex, uint32_t code) const;
|
||||
|
||||
|
@ -26,9 +26,9 @@ public:
|
|||
std::optional<PrefixCode> getCodeForSymbol(unsigned symbol) const;
|
||||
|
||||
using CompressedSequenceEntry = std::pair<unsigned, unsigned>;
|
||||
const std::vector<CompressedSequenceEntry>& getCompressedLengthSequence() const;
|
||||
const Vector<CompressedSequenceEntry>& getCompressedLengthSequence() const;
|
||||
|
||||
const std::vector<std::size_t> getCompressedLengthCounts() const;
|
||||
const Vector<std::size_t> getCompressedLengthCounts() const;
|
||||
|
||||
std::size_t getNumCodeLengths() const;
|
||||
|
||||
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
std::size_t mapToDeflateIndex(std::size_t index) const;
|
||||
|
||||
void setInputLengthSequence(const std::vector<unsigned char>& sequence, bool targetDeflate = true);
|
||||
void setInputLengthSequence(const Vector<unsigned char>& sequence, bool targetDeflate = true);
|
||||
|
||||
bool readNextSymbol(unsigned& buffer, BitStream* stream);
|
||||
|
||||
|
@ -45,11 +45,11 @@ private:
|
|||
HuffmanTree mTree;
|
||||
bool mTargetDeflate{true};
|
||||
|
||||
std::vector<unsigned char> mInputLengthSequence;
|
||||
std::vector<PrefixCode> mCodes;
|
||||
Vector<unsigned char> mInputLengthSequence;
|
||||
Vector<PrefixCode> mCodes;
|
||||
|
||||
std::vector<CompressedSequenceEntry> mCompressedLengthSequence;
|
||||
std::vector<std::size_t> mCompressedLengthCounts;
|
||||
Vector<CompressedSequenceEntry> mCompressedLengthSequence;
|
||||
Vector<std::size_t> mCompressedLengthCounts;
|
||||
|
||||
static constexpr unsigned DEFLATE_PERMUTATION_SIZE{19};
|
||||
static constexpr unsigned DEFLATE_PERMUTATION[DEFLATE_PERMUTATION_SIZE]{16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue