MCPcopy Create free account
hub / github.com/apache/arrow / StringArea

Function StringArea

cpp/src/arrow/util/secure_string_test.cc:35–41  ·  view source on GitHub ↗

Reading the unused tail past size() is undefined behavior, exclude MSVC from the tail check.

Source from the content-addressed store, hash-verified

33// Reading the unused tail past size() is undefined behavior, exclude MSVC
34// from the tail check.
35std::string_view StringArea(const std::string& string) {
36#if defined(_MSC_VER)
37 return {string.data(), string.size()};
38#else
39 return {string.data(), string.capacity()};
40#endif
41}
42
43// same as GTest ASSERT_PRED_FORMAT2 macro, but without the outer GTEST_ASSERT_
44#define COMPARE(val1, val2) \

Callers 2

IsSecurelyClearedFunction · 0.85
TESTFunction · 0.85

Calls 3

dataMethod · 0.45
sizeMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected