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

Function ConvertStringToUnsignedChar

IO/PostgreSQL/vtkPostgreSQLQuery.cxx:637–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635//------------------------------------------------------------------------------
636
637vtkVariant ConvertStringToUnsignedChar(bool isBinary, const char* rawData)
638{
639 if (isBinary)
640 {
641 return vtkVariant(static_cast<unsigned char>(rawData[0]));
642 }
643 else
644 {
645 vtkVariant converter(rawData);
646 return vtkVariant(converter.ToUnsignedChar());
647 }
648}
649
650//------------------------------------------------------------------------------
651

Callers 1

DataValueMethod · 0.85

Calls 2

ToUnsignedCharMethod · 0.80
vtkVariantClass · 0.70

Tested by

no test coverage detected