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

Method ReadAsciiCharArray

Utilities/DICOMParser/DICOMFile.cxx:287–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287char* DICOMFile::ReadAsciiCharArray(int len)
288{
289 if (len <= 0)
290 {
291 return nullptr;
292 }
293 char* val = new char[len + 1];
294 this->Read(val, len);
295 val[len] = 0; // NULL terminate.
296 return val;
297}
298
299#ifdef _MSC_VER
300#pragma warning(pop)

Callers 1

ReadNextRecordMethod · 0.80

Calls 1

ReadMethod · 0.95

Tested by

no test coverage detected