Lines Matching defs:const

41 unsigned BoolVector_CountSum(const CBoolVector &v);

42 unsigned BoolVector_CountSum(const CBoolVector &v)
45 const unsigned size = v.Size();
52 static inline bool BoolVector_Item_IsValidAndTrue(const CBoolVector &v, unsigned i)
87 void Set(CInArchive *archive, const Byte *data, size_t size, bool needUpdatePos);
88 void Set(CInArchive *archive, const CByteBuffer &byteBuffer);
89 void Set(CInArchive *archive, const CObjectVector<CByteBuffer> *dataVector);
103 void CStreamSwitch::Set(CInArchive *archive, const Byte *data, size_t size, bool needUpdatePos)
112 void CStreamSwitch::Set(CInArchive *archive, const CByteBuffer &byteBuffer)
117 void CStreamSwitch::Set(CInArchive *archive, const CObjectVector<CByteBuffer> *dataVector)
120 const Byte external = archive->ReadByte();
125 const CNum dataIndex = archive->ReadNum();
132 void CInArchive::AddByteStream(const Byte *buf, size_t size)
170 static UInt64 ReadNumberSpec(const Byte *p, size_t size, size_t &processed)
178 const unsigned b = *p++;
199 const unsigned mask = (unsigned)0x80 >> i;
202 const UInt64 high = b & (mask - 1);
226 const UInt64 res = ReadNumberSpec(_buffer + _pos, _size - _pos, processed);
246 const UInt64 value = ReadNumber();
256 const UInt32 res = Get32(_buffer + _pos);
265 const UInt64 res = Get64(_buffer + _pos);
292 static const Byte *FindSignature_10(const Byte *p, const Byte *limit)
300 const Byte b = p[5];
315 static inline bool TestStartCrc(const Byte *p)
320 static inline bool TestSignature2(const Byte *p)
337 HRESULT CInArchive::FindAndReadSignature(IInStream *stream, const UInt64 *searchHeaderSizeLimit)
346 const UInt32 kBufSize = (1 << 15) + kHeaderSize; // must be > (kHeaderSize * 2)
359 const UInt64 rem = *searchHeaderSizeLimit - offset;
376 const Byte *p = buf + pos + 1;
377 const Byte *lim = buf + processed + 1;
398 HRESULT CInArchive::Open(IInStream *stream, const UInt64 *searchHeaderSizeLimit)
429 const UInt32 numCoders = ReadNum();
442 const Byte mainByte = ReadByte();
445 const unsigned idSize = (mainByte & 0xF);
448 const Byte *longID = GetPtr();
469 const CNum propsSize = ReadNum();
479 const UInt32 numBonds = numCoders - 1;
490 const UInt32 numPackStreams = numInStreams - numBonds;
509 void CFolders::ParseFolderInfo(unsigned folderIndex, CFolder &folder) const
511 const size_t startPos = FoCodersDataOffset[folderIndex];
520 void CDatabase::GetPath(unsigned index, UString &path) const
526 const size_t offset = NameOffsets[index];
527 const size_t size = NameOffsets[index + 1] - offset;
534 const Byte *p = ((const Byte *)NamesBuf + offset * 2);
538 wmemcpy(s, (const wchar_t *)(const void *)p, size);
554 HRESULT CDatabase::GetPath_Prop(unsigned index, PROPVARIANT *path) const throw()
560 const size_t offset = NameOffsets[index];
561 const size_t size = NameOffsets[index + 1] - offset;
571 const Byte *p = ((const Byte *)NamesBuf + offset * 2);
585 const Byte *p = ((const Byte *)NamesBuf + offset * 2);
630 const Byte *p = (const Byte *)NamesBuf + (NameOffsets[cur + 1] * 2) - 2;
641 const CFileItem &file = Files[cur];
654 const UInt64 type = ReadID();
666 const unsigned numItems = v.Defs.Size();
669 const bool *defs = &v.Defs[0];
689 const CNum numPackStreams = ReadNum();
698 const UInt64 packSize = ReadNumber();
722 const CObjectVector<CByteBuffer> *dataVector,
726 const CNum numFolders = ReadNum();
732 const Byte *startBufPtr = _inByteBack->GetPtr();
754 const CNum numCoders = inByte->ReadNum();
761 const Byte mainByte = inByte->ReadByte();
765 const unsigned idSize = (mainByte & 0xF);
770 const Byte *longID = inByte->GetPtr();
794 const CNum propsSize = inByte->ReadNum();
799 const Byte v = *_inByteBack->GetPtr();
805 const UInt32 dicSize = GetUi32(_inByteBack->GetPtr() + 1);
821 const CNum numBonds = numCoders - 1;
846 const CNum index = inByte->ReadNum(); // PackStreams
872 const size_t dataSize = (size_t)(_inByteBack->GetPtr() - startBufPtr);
888 const UInt64 type = ReadID();
932 const CNum numSubstreams = folders.NumUnpackStreamsVector[i];
938 const UInt64 size = ReadNumber();
944 const UInt64 folderUnpackSize = folders.GetFolderUnpackSize(i);
957 const CNum val = folders.NumUnpackStreamsVector[i];
968 const CNum numSubstreams = folders.NumUnpackStreamsVector[i];
991 const CNum numSubstreams = folders.NumUnpackStreamsVector[i];
1023 const CNum numSubstreams = folders.NumUnpackStreamsVector[i];
1043 const CObjectVector<CByteBuffer> *dataVector,
1119 const Byte allAreDefined = ReadByte();
1131 void CInArchive::ReadUInt64DefVector(const CObjectVector<CByteBuffer> &dataVector,
1141 const bool *defs = &v.Defs[0];
1174 const UInt64 unpackSize64 = folders.GetFolderUnpackSize(i);
1175 const size_t unpackSize = (size_t)unpackSize64;
1243 const HRESULT result = ReadAndDecodePackedStreams(
1272 const CNum numFiles = ReadNum();
1287 const UInt64 type2 = ReadID();
1290 const UInt64 size = ReadNumber();
1305 const size_t rem = _inByteBack->GetRem();
1313 const size_t curRem = (rem - pos) / 2;
1314 const UInt16 *buf = (const UInt16 *)(const void *)(db.NamesBuf + pos);
1460 const CNum numAntiItems = BoolVector_CountSum(antiFileVector);
1521 const bool emptyStream = !Files[i].HasStream;
1598 const UInt32 crcFromArc = Get32(_header + 8);
1603 const unsigned kCheckSize = 512;
1606 const UInt64 rem = fileSize - cur;
1674 const size_t nextHeaderSize_t = (size_t)nextHeaderSize;
1692 const UInt64 type = ReadID();
1697 const HRESULT result = ReadAndDecodePackedStreams(
1735 const HRESULT res = ReadDatabase2(