MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / validateBytes

Method validateBytes

src/Base/InputSource.cpp:168–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166struct StdInputStream::TextCodec
167{
168 void validateBytes(XMLByte* const toFill, std::streamsize len)
169 {
170 if (len <= 0) {
171 return;
172 }
173 sanitizeUtf8Bytes(toFill, static_cast<std::size_t>(len));
174 }
175};
176
177StdInputStream::StdInputStream(

Callers 1

readBytesMethod · 0.80

Calls 1

sanitizeUtf8BytesFunction · 0.85

Tested by

no test coverage detected