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

Function ConvertStringToUnsignedShort

IO/PostgreSQL/vtkPostgreSQLQuery.cxx:669–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667//------------------------------------------------------------------------------
668
669vtkVariant ConvertStringToUnsignedShort(bool isBinary, const char* rawData)
670{
671 if (isBinary)
672 {
673 unsigned short result;
674 ConvertFromNetworkOrder(result, rawData);
675 return vtkVariant(result);
676 }
677 else
678 {
679 vtkVariant converter(rawData);
680 return vtkVariant(converter.ToUnsignedShort());
681 }
682}
683
684//------------------------------------------------------------------------------
685

Callers 1

DataValueMethod · 0.85

Calls 3

ConvertFromNetworkOrderFunction · 0.85
ToUnsignedShortMethod · 0.80
vtkVariantClass · 0.70

Tested by

no test coverage detected