Lines Matching defs:const

26 extern const CExternalCodecs *g_ExternalCodecs_Ptr;

45 static const char * const k_DefaultHashMethod = "CRC32";
47 HRESULT CHashBundle::SetMethods(DECL_EXTERNAL_CODECS_LOC_VARS const UStringVector &hashMethods)
98 const COneMethodInfo &m = methods[i];
105 const UInt32 digestSize = hasher->GetDigestSize();
130 void CHashBundle::Update(const void *data, UInt32 size)
142 static void AddDigests(Byte *dest, const Byte *src, UInt32 size)
179 void CHasherState::AddDigest(unsigned groupIndex, const Byte *data)
185 void CHashBundle::Final(bool isDir, bool isAltStream, const UString &path)
244 static void CSum_Name_OriginalToEscape(const AString &src, AString &dest)
262 static bool CSum_Name_EscapeToOriginal(const char *s, AString &dest)
273 const char c1 = *s;
304 static const unsigned kHashColumnWidth_Min = 4 * 2;
308 const unsigned width = digestSize * 2;
317 const CObjectVector<CHasherState> &hashers
323 const CHasherState &h = hashers[i];
328 const unsigned pos = (unsigned)strlen(s);
329 const int numSpaces = (int)GetColumnWidth(h.DigestSize) - (int)pos;
341 static const unsigned kSizeField_Len = 13; // same as in HashCon.cpp
356 static void Add_LF(CDynLimBuf &hashFileString, const CHashOptionsLocal &options)
365 const CHashOptionsLocal &options,
366 const UString &path2,
368 const AString &methodName,
369 const AString &hashesString)
381 const bool zeroMode = options.HashMode_Zero.Val;
382 const bool tagMode = options.HashMode_Tag.Val;
436 const CHashOptionsLocal &options,
437 const UString &path,
439 const CHashBundle &hb)
453 const NWildcard::CCensor &censor,
454 const CHashOptions &options,
511 const UInt32 kBufSize = 1 << 15;
522 const bool needGenerate = !options.HashFilePath.IsEmpty();
539 const CDirItem &di = dirItems.Items[i];
561 const FString phyPath = dirItems.GetPhyPath(i);
658 void HashHexToString(char *dest, const Byte *data, UInt32 size)
678 const unsigned b = data[i];
688 const unsigned b = data[i];
696 void CHasherState::WriteToString(unsigned digestIndex, char *s) const
723 static size_t ParseHexString(const char *s, Byte *dest) throw()
750 bool CHashPair::IsDir() const
762 bool CHashPair::ParseCksum(const char *s)
764 const char *end;
766 const UInt32 crc = ConvertStringToUInt32(s, &end);
771 const UInt64 size = ConvertStringToUInt64(end, &end);
789 static const char *SkipWhite(const char *s)
796 static const char * const k_CsumMethodNames[] =
812 static UString GetMethod_from_FileName(const UString &name)
816 const int dotPos = s.ReverseFind_Dot();
817 const char *src = s.Ptr();
824 const char *m = "";
845 bool CHashPair::Parse(const char *s)
858 // const char *kMethod = GetMethod_from_FileName(s);
864 const char *s2 = s;
867 const char c = *s2;
883 const char *s2 = s;
906 const size_t num = ParseHexString(s, NULL);
909 const size_t numChars = num * 2;
920 const AString temp (Name);
932 const char c = *s;
952 const Byte *p = buf;
956 const Byte b = p[pos];
986 s.SetFrom((const char *)(p + posCur), (unsigned)(pos - posCur));
992 static bool Is_CR_LF_Data(const Byte *buf, size_t size)
997 const Byte b = buf[i];
1016 static const Byte kArcProps[] =
1022 static const Byte kProps[] =
1030 static const Byte kRawProps[] =
1056 Z7_COM7F_IMF(CHandler::GetRawProp(UInt32 index, PROPID propID, const void **data, UInt32 *dataSize, UInt32 *propType))
1064 const CHashPair &hp = HashPairs[index];
1086 static void Add_OptSpace_String(UString &dest, const char *src)
1217 const UInt32 kBlockSize = ((UInt32)1 << 24);
1218 const UInt32 curSize = (len < kBlockSize) ? (UInt32)len : kBlockSize;
1229 const UInt64 files = 0;
1236 Z7_COM7F_IMF(CHandler::Open(IInStream *stream, const UInt64 *, IArchiveOpenCallback *openCallback))
1312 const char *kStart = "Hash: ";
1338 const CHashPair &hp = HashPairs[i];
1389 static bool CheckDigests(const Byte *a, const Byte *b, size_t size)
1411 const char *m = NULL;
1420 const CExternalCodecs *_externalCodecs = g_ExternalCodecs_Ptr;
1429 Z7_COM7F_IMF(CHandler::Extract(const UInt32 *indices, UInt32 numItems,
1439 const bool allFilesMode = (numItems == (UInt32)(Int32)-1);
1446 const CExternalCodecs *_externalCodecs = g_ExternalCodecs_Ptr;
1491 const UInt32 index = allFilesMode ? i : indices[i];
1492 const CHashPair &hp = HashPairs[index];
1508 const UInt32 kBufSize = 1 << 15;
1522 const UInt32 index = allFilesMode ? i : indices[i];
1530 const bool isDir = hp.IsDir();
1554 const bool isAltStream = false;
1592 const bool isSupportedMode = hp.IsSupportedMode();
1633 const CHasherState &hs = hb_Use->Hashers[0];
1772 const CExternalCodecs *_externalCodecs = g_ExternalCodecs_Ptr;
1799 const UString method = GetMethod_from_FileName(prop.bstrVal);
1812 const UInt32 kBufSize = 1 << 15;
1841 const CUpdateItem &ui = updateItems[i];
1900 const bool isDir = ui.IsDir;
1922 const bool isAltStream = false;
1952 const CHasherState &hs = hb.Hashers[k];
1974 const CHashPair &existItem = HashPairs[(unsigned)ui.IndexInArc];
2002 HRESULT CHandler::SetProperty(const wchar_t *nameSpec, const PROPVARIANT &value)
2047 Z7_COM7F_IMF(CHandler::SetProperties(const wchar_t * const *names, const PROPVARIANT *values, UInt32 numProps))