MCPcopy Create free account
hub / github.com/Kitware/VTK / FindBlockSize

Method FindBlockSize

IO/XMLParser/vtkXMLDataParser.cxx:581–591  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

579
580//------------------------------------------------------------------------------
581size_t vtkXMLDataParser::FindBlockSize(vtkTypeUInt64 block)
582{
583 if (block < this->NumberOfBlocks - (this->PartialLastBlockUncompressedSize ? 1 : 0))
584 {
585 return this->BlockUncompressedSize;
586 }
587 else
588 {
589 return this->PartialLastBlockUncompressedSize;
590 }
591}
592
593//------------------------------------------------------------------------------
594int vtkXMLDataParser::ReadBlock(vtkTypeUInt64 block, unsigned char* buffer)

Callers 2

ReadBlockMethod · 0.95
ReadCompressedDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected