/dports/games/hllib/HLLib/ |
H A D | MemoryStream.cpp | 86 this->uiLength = 0; in Close() 91 return this->uiLength; in GetStreamSize() 115 this->uiPointer = this->uiLength; in Seek() 148 if(this->uiPointer == this->uiLength) in Read() 173 if(this->uiPointer == this->uiLength) in Read() 183 this->uiPointer = this->uiLength; in Read() 218 if(this->uiPointer > this->uiLength) in Write() 220 this->uiLength = this->uiPointer; in Write() 252 if(this->uiPointer > this->uiLength) in Write() 254 this->uiLength = this->uiPointer; in Write() [all …]
|
H A D | Mapping.cpp | 18 …uiLength) : pMapping(pMapping), lpView(lpView), uiAllocationOffset(uiAllocationOffset), uiAllocati… in CView() argument 20 assert(this->uiOffset + this->uiLength <= this->uiAllocationLength); in CView() 45 return this->uiLength; in GetLength() 149 hlBool CMapping::Map(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in Map() argument 165 …if(uiOffset >= pView->GetAllocationOffset() && uiOffset + uiLength <= pView->GetAllocationOffset()… in Map() 168 pView->uiLength = uiLength; in Map() 173 if(this->Unmap(pView) && this->MapInternal(pView, uiOffset, uiLength)) in Map() 220 hlBool CMapping::Commit(CView &View, hlULongLong uiOffset, hlULongLong uiLength) in Commit() argument 228 if(uiOffset + uiLength > View.GetLength()) in Commit() 244 return this->CommitInternal(View, uiOffset, uiLength); in Commit() [all …]
|
H A D | StreamMapping.cpp | 77 hlBool CStreamMapping::MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in MapInternal() argument 81 if(uiOffset + uiLength > this->Stream.GetStreamSize()) in MapInternal() 84 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0, this->Stream.… in MapInternal() 86 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0, this->Stream.… in MapInternal() 96 hlByte *lpData = new hlByte[static_cast<hlUInt>(uiLength)]; in MapInternal() 98 if(Stream.Read(lpData, static_cast<hlUInt>(uiLength)) != uiLength) in MapInternal() 104 pView = new CView(this, lpData, uiOffset, uiLength); in MapInternal() 117 hlBool CStreamMapping::CommitInternal(CView &View, hlULongLong uiOffset, hlULongLong uiLength) in CommitInternal() argument 128 …Stream.Write((const hlByte *)View.GetView() + uiOffset, static_cast<hlUInt>(uiLength)) != uiLength) in CommitInternal()
|
H A D | MappingStream.cpp | 107 this->uiLength = 0; in Close() 112 return this->uiLength; in GetStreamSize() 136 this->uiPointer = this->uiLength; in Seek() 148 iPointer = static_cast<hlLongLong>(this->uiLength); in Seek() 169 if(this->uiPointer < this->uiLength) in Read() 203 if(this->uiPointer == this->uiLength) in Read() 210 while(uiBytes && this->uiPointer < this->uiLength) in Read() 268 if(this->uiPointer > this->uiLength) in Write() 270 this->uiLength = this->uiPointer; in Write() 326 if(this->uiPointer > this->uiLength) in Write() [all …]
|
H A D | GCFStream.cpp | 103 this->uiLength = 0; in Close() 108 return this->uiLength; in GetStreamSize() 132 this->uiPointer = this->uiLength; in Seek() 144 iPointer = static_cast<hlLongLong>(this->uiLength); in Seek() 165 if(this->uiPointer < this->uiLength) in Read() 199 if(this->uiPointer == this->uiLength) in Read() 206 while(uiBytes && this->uiPointer < this->uiLength) in Read() 264 if(this->uiPointer > this->uiLength) in Write() 266 this->uiLength = this->uiPointer; in Write() 322 if(this->uiPointer > this->uiLength) in Write() [all …]
|
H A D | Mapping.h | 32 hlULongLong uiLength; variable 37 …ocationOffset, hlULongLong uiAllocationLength, hlULongLong uiOffset = 0, hlULongLong uiLength = 0); 77 hlBool Map(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength); 81 hlBool Commit(CView &View, hlULongLong uiOffset, hlULongLong uiLength); 87 virtual hlBool MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) = 0; 90 virtual hlBool CommitInternal(CView &View, hlULongLong uiOffset, hlULongLong uiLength);
|
H A D | FileMapping.cpp | 262 hlBool CFileMapping::MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in MapInternal() argument 268 if(uiOffset + uiLength > this->uiViewSize) in MapInternal() 271 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 273 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 278 pView = new CView(this, (hlByte *)this->lpView, 0, this->uiViewSize, uiOffset, uiLength); in MapInternal() 284 if(uiOffset + uiLength > uiMappingSize) in MapInternal() 287 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 289 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 298 …hlULongLong uiFileLength = (((uiLength + uiGrainOffset + static_cast<hlULongLong>(this->uiAllocati… in MapInternal() 327 pView = new CView(this, lpView, uiFileOffset, uiFileLength, uiGrainOffset, uiLength); in MapInternal()
|
H A D | MemoryMapping.cpp | 87 hlBool CMemoryMapping::MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in MapInternal() argument 91 if(uiOffset + uiLength > this->uiBufferSize) in MapInternal() 94 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0, this->uiBuffe… in MapInternal() 96 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0, this->uiBuffe… in MapInternal() 101 pView = new CView(this, this->lpData, 0, this->uiBufferSize, uiOffset, uiLength); in MapInternal()
|
H A D | Error.cpp | 140 hlUInt uiLength = (hlUInt)strlen(this->lpSystemError); local 142 while(uiLength >= 0 && isspace(this->lpSystemError[uiLength - 1])) 144 uiLength--; 146 this->lpSystemError[uiLength] = '\0';
|
H A D | VBSPFile.cpp | 93 pHeader->lpLumps[i].uiOffset = this->pHeader->lpLumps[i].uiLength; in MapDataStructures() 94 pHeader->lpLumps[i].uiLength = this->pHeader->lpLumps[i].uiVersion; in MapDataStructures() 99 if(sizeof(ZIPEndOfCentralDirectoryRecord) <= this->pHeader->lpLumps[HL_VBSP_LUMP_PAKFILE].uiLength) in MapDataStructures() 206 if(this->pHeader->lpLumps[HL_VBSP_LUMP_ENTITIES].uiLength != 0) in CreateRoot() 220 if(this->pHeader->lpLumps[HL_VBSP_LUMP_PAKFILE].uiLength != 0) in CreateRoot() 237 if(this->pHeader->lpLumps[i].uiLength > 0) in CreateRoot() 565 uiSize = this->pHeader->lpLumps[pFile->GetID()].uiLength; in GetFileSizeInternal() 585 uiSize = this->pHeader->lpLumps[pFile->GetID()].uiLength; in GetFileSizeOnDiskInternal() 589 uiSize = this->pHeader->lpLumps[pFile->GetID() - HL_VBSP_LUMP_COUNT].uiLength; in GetFileSizeOnDiskInternal() 646 hlUInt uiBufferSize = sizeof(LMPHeader) + this->pHeader->lpLumps[uiID].uiLength; in CreateStreamInternal() [all …]
|
H A D | Checksum.cpp | 271 context.uiLength = 0; in MD5_Initialize() 276 hlULong uiBlockLength = context.uiLength % sizeof(context.lpBlock); in MD5_Update() 281 context.uiLength += uiCopyLength; in MD5_Update() 350 context.uiLength += uiBufferSize; in MD5_Update() 355 hlULongLong uiLengthInBits = 8ULL * static_cast<hlULongLong>(context.uiLength); in MD5_Finalize() 357 hlULong uiBlockLength = context.uiLength % sizeof(context.lpBlock); in MD5_Finalize() 382 context.uiLength = 0; in SHA1_Initialize() 387 hlULong uiBlockLength = context.uiLength % sizeof(context.lpBlock); in SHA1_Update() 392 context.uiLength += uiCopyLength; in SHA1_Update() 482 context.uiLength += uiBufferSize; in SHA1_Update() [all …]
|
H A D | Utility.cpp | 131 hlUInt uiLength = (hlUInt)strlen(lpName); in RemoveIllegalCharacters() local 134 for(hlUInt i = 0; i < uiLength;) in RemoveIllegalCharacters() 143 for(hlUInt k = i; k < uiLength; k++) in RemoveIllegalCharacters() 148 uiLength--; in RemoveIllegalCharacters()
|
/dports/archivers/hlextract/HLLib/ |
H A D | MemoryStream.cpp | 86 this->uiLength = 0; in Close() 91 return this->uiLength; in GetStreamSize() 115 this->uiPointer = this->uiLength; in Seek() 148 if(this->uiPointer == this->uiLength) in Read() 173 if(this->uiPointer == this->uiLength) in Read() 183 this->uiPointer = this->uiLength; in Read() 218 if(this->uiPointer > this->uiLength) in Write() 220 this->uiLength = this->uiPointer; in Write() 252 if(this->uiPointer > this->uiLength) in Write() 254 this->uiLength = this->uiPointer; in Write() [all …]
|
H A D | Mapping.cpp | 18 …uiLength) : pMapping(pMapping), lpView(lpView), uiAllocationOffset(uiAllocationOffset), uiAllocati… in CView() argument 20 assert(this->uiOffset + this->uiLength <= this->uiAllocationLength); in CView() 45 return this->uiLength; in GetLength() 149 hlBool CMapping::Map(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in Map() argument 165 …if(uiOffset >= pView->GetAllocationOffset() && uiOffset + uiLength <= pView->GetAllocationOffset()… in Map() 168 pView->uiLength = uiLength; in Map() 173 if(this->Unmap(pView) && this->MapInternal(pView, uiOffset, uiLength)) in Map() 220 hlBool CMapping::Commit(CView &View, hlULongLong uiOffset, hlULongLong uiLength) in Commit() argument 228 if(uiOffset + uiLength > View.GetLength()) in Commit() 244 return this->CommitInternal(View, uiOffset, uiLength); in Commit() [all …]
|
H A D | StreamMapping.cpp | 77 hlBool CStreamMapping::MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in MapInternal() argument 81 if(uiOffset + uiLength > this->Stream.GetStreamSize()) in MapInternal() 84 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0, this->Stream.… in MapInternal() 86 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0, this->Stream.… in MapInternal() 96 hlByte *lpData = new hlByte[static_cast<hlUInt>(uiLength)]; in MapInternal() 98 if(Stream.Read(lpData, static_cast<hlUInt>(uiLength)) != uiLength) in MapInternal() 104 pView = new CView(this, lpData, uiOffset, uiLength); in MapInternal() 117 hlBool CStreamMapping::CommitInternal(CView &View, hlULongLong uiOffset, hlULongLong uiLength) in CommitInternal() argument 128 …Stream.Write((const hlByte *)View.GetView() + uiOffset, static_cast<hlUInt>(uiLength)) != uiLength) in CommitInternal()
|
H A D | MappingStream.cpp | 107 this->uiLength = 0; in Close() 112 return this->uiLength; in GetStreamSize() 136 this->uiPointer = this->uiLength; in Seek() 148 iPointer = static_cast<hlLongLong>(this->uiLength); in Seek() 169 if(this->uiPointer < this->uiLength) in Read() 203 if(this->uiPointer == this->uiLength) in Read() 210 while(uiBytes && this->uiPointer < this->uiLength) in Read() 268 if(this->uiPointer > this->uiLength) in Write() 270 this->uiLength = this->uiPointer; in Write() 326 if(this->uiPointer > this->uiLength) in Write() [all …]
|
H A D | GCFStream.cpp | 103 this->uiLength = 0; in Close() 108 return this->uiLength; in GetStreamSize() 132 this->uiPointer = this->uiLength; in Seek() 144 iPointer = static_cast<hlLongLong>(this->uiLength); in Seek() 165 if(this->uiPointer < this->uiLength) in Read() 199 if(this->uiPointer == this->uiLength) in Read() 206 while(uiBytes && this->uiPointer < this->uiLength) in Read() 264 if(this->uiPointer > this->uiLength) in Write() 266 this->uiLength = this->uiPointer; in Write() 322 if(this->uiPointer > this->uiLength) in Write() [all …]
|
H A D | Mapping.h | 32 hlULongLong uiLength; variable 37 …ocationOffset, hlULongLong uiAllocationLength, hlULongLong uiOffset = 0, hlULongLong uiLength = 0); 77 hlBool Map(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength); 81 hlBool Commit(CView &View, hlULongLong uiOffset, hlULongLong uiLength); 87 virtual hlBool MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) = 0; 90 virtual hlBool CommitInternal(CView &View, hlULongLong uiOffset, hlULongLong uiLength);
|
H A D | FileMapping.cpp | 262 hlBool CFileMapping::MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in MapInternal() argument 268 if(uiOffset + uiLength > this->uiViewSize) in MapInternal() 271 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 273 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 278 pView = new CView(this, (hlByte *)this->lpView, 0, this->uiViewSize, uiOffset, uiLength); in MapInternal() 284 if(uiOffset + uiLength > uiMappingSize) in MapInternal() 287 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 289 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0ULL, this->uiVi… in MapInternal() 298 …hlULongLong uiFileLength = (((uiLength + uiGrainOffset + static_cast<hlULongLong>(this->uiAllocati… in MapInternal() 327 pView = new CView(this, lpView, uiFileOffset, uiFileLength, uiGrainOffset, uiLength); in MapInternal()
|
H A D | MemoryMapping.cpp | 87 hlBool CMemoryMapping::MapInternal(CView *&pView, hlULongLong uiOffset, hlULongLong uiLength) in MapInternal() argument 91 if(uiOffset + uiLength > this->uiBufferSize) in MapInternal() 94 …(%I64u, %I64u) does not fit inside mapping, (%I64u, %I64u).", uiOffset, uiLength, 0, this->uiBuffe… in MapInternal() 96 …iew (%llu, %llu) does not fit inside mapping, (%llu, %llu).", uiOffset, uiLength, 0, this->uiBuffe… in MapInternal() 101 pView = new CView(this, this->lpData, 0, this->uiBufferSize, uiOffset, uiLength); in MapInternal()
|
H A D | Error.cpp | 140 hlUInt uiLength = (hlUInt)strlen(this->lpSystemError); local 142 while(uiLength >= 0 && isspace(this->lpSystemError[uiLength - 1])) 144 uiLength--; 146 this->lpSystemError[uiLength] = '\0';
|
H A D | VBSPFile.cpp | 93 pHeader->lpLumps[i].uiOffset = this->pHeader->lpLumps[i].uiLength; in MapDataStructures() 94 pHeader->lpLumps[i].uiLength = this->pHeader->lpLumps[i].uiVersion; in MapDataStructures() 99 if(sizeof(ZIPEndOfCentralDirectoryRecord) <= this->pHeader->lpLumps[HL_VBSP_LUMP_PAKFILE].uiLength) in MapDataStructures() 206 if(this->pHeader->lpLumps[HL_VBSP_LUMP_ENTITIES].uiLength != 0) in CreateRoot() 220 if(this->pHeader->lpLumps[HL_VBSP_LUMP_PAKFILE].uiLength != 0) in CreateRoot() 237 if(this->pHeader->lpLumps[i].uiLength > 0) in CreateRoot() 565 uiSize = this->pHeader->lpLumps[pFile->GetID()].uiLength; in GetFileSizeInternal() 585 uiSize = this->pHeader->lpLumps[pFile->GetID()].uiLength; in GetFileSizeOnDiskInternal() 589 uiSize = this->pHeader->lpLumps[pFile->GetID() - HL_VBSP_LUMP_COUNT].uiLength; in GetFileSizeOnDiskInternal() 646 hlUInt uiBufferSize = sizeof(LMPHeader) + this->pHeader->lpLumps[uiID].uiLength; in CreateStreamInternal() [all …]
|
H A D | Checksum.cpp | 271 context.uiLength = 0; in MD5_Initialize() 276 hlULong uiBlockLength = context.uiLength % sizeof(context.lpBlock); in MD5_Update() 281 context.uiLength += uiCopyLength; in MD5_Update() 350 context.uiLength += uiBufferSize; in MD5_Update() 355 hlULongLong uiLengthInBits = 8ULL * static_cast<hlULongLong>(context.uiLength); in MD5_Finalize() 357 hlULong uiBlockLength = context.uiLength % sizeof(context.lpBlock); in MD5_Finalize() 382 context.uiLength = 0; in SHA1_Initialize() 387 hlULong uiBlockLength = context.uiLength % sizeof(context.lpBlock); in SHA1_Update() 392 context.uiLength += uiCopyLength; in SHA1_Update() 482 context.uiLength += uiBufferSize; in SHA1_Update() [all …]
|
/dports/graphics/libbpg/libbpg-0.9.8/jctvc/TLibEncoder/ |
H A D | SyntaxElementWriter.cpp | 96 Void SyntaxElementWriter::xWriteCode ( UInt uiCode, UInt uiLength ) in xWriteCode() argument 98 assert ( uiLength > 0 ); in xWriteCode() 99 m_pcBitIf->write( uiCode, uiLength ); in xWriteCode() 104 UInt uiLength = 1; in xWriteUvlc() local 112 uiLength += 2; in xWriteUvlc() 115 m_pcBitIf->write( 0, uiLength >> 1); in xWriteUvlc() 116 m_pcBitIf->write( uiCode, (uiLength+1) >> 1); in xWriteUvlc()
|
/dports/games/opencity/opencity-0.0.6.5stable/src/ |
H A D | pathfinder.cpp | 216 uint uiLength; in findShortestPath() local 314 uiLength = node.ppath->GetLength() + (uint)ppathstruct->GetTraffic(); in findShortestPath() 316 if (ppathstruct->GetLength() > uiLength) { in findShortestPath() 317 ppathstruct->SetLength( uiLength ); in findShortestPath() 334 uiLength = node.ppath->GetLength() + (uint)ppathstruct->GetTraffic(); in findShortestPath() 336 if (ppathstruct->GetLength() > uiLength) { in findShortestPath() 337 ppathstruct->SetLength( uiLength ); in findShortestPath() 356 if (ppathstruct->GetLength() > uiLength) { in findShortestPath() 357 ppathstruct->SetLength( uiLength ); in findShortestPath() 376 if (ppathstruct->GetLength() > uiLength) { in findShortestPath() [all …]
|