mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 18:11:37 -06:00
22.00
This commit is contained in:
19
CPP/7zip/Common/UniqBlocks.h
Normal file → Executable file
19
CPP/7zip/Common/UniqBlocks.h
Normal file → Executable file
@@ -3,9 +3,24 @@
|
||||
#ifndef __UNIQ_BLOCKS_H
|
||||
#define __UNIQ_BLOCKS_H
|
||||
|
||||
#include "../../Common/MyTypes.h"
|
||||
#include "../../Common/MyBuffer.h"
|
||||
#include "../../Common/MyVector.h"
|
||||
#include "../../Common/MyString.h"
|
||||
|
||||
struct C_UInt32_UString_Map
|
||||
{
|
||||
CRecordVector<UInt32> Numbers;
|
||||
UStringVector Strings;
|
||||
|
||||
void Add_UInt32(const UInt32 n)
|
||||
{
|
||||
Numbers.AddToUniqueSorted(n);
|
||||
}
|
||||
int Find(const UInt32 n)
|
||||
{
|
||||
return Numbers.FindInSorted(n);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
struct CUniqBlocks
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user