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

Method LoadFileBuffer

IO/Geometry/vtkGLTFDocumentLoader.cxx:1555–1565  ·  view source on GitHub ↗

File operations **/ ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1553/** File operations **/
1554//------------------------------------------------------------------------------
1555bool vtkGLTFDocumentLoader::LoadFileBuffer(
1556 const std::string& fileName, std::vector<char>& glbBuffer)
1557{
1558 vtkNew<vtkFileResourceStream> file;
1559 if (!file->Open(fileName.c_str()))
1560 {
1561 return false;
1562 }
1563
1564 return this->LoadStreamBuffer(file, glbBuffer);
1565}
1566
1567//------------------------------------------------------------------------------
1568bool vtkGLTFDocumentLoader::LoadStreamBuffer(

Callers 2

RequestDataMethod · 0.80
ImportBeginMethod · 0.80

Calls 3

LoadStreamBufferMethod · 0.95
OpenMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected