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

Method ToString

cpp/src/arrow/buffer_test.cc:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 const char* type_name() const override { return kMyDeviceTypeName; }
55
56 std::string ToString() const override {
57 switch (value_) {
58 case kMyDeviceAllowCopy:
59 return "MyDevice[noview]";
60 case kMyDeviceAllowView:
61 return "MyDevice[nocopy]";
62 default:
63 return "MyDevice[nocopy][noview]";
64 }
65 }
66
67 bool Equals(const Device& other) const override {
68 if (other.type_name() != kMyDeviceTypeName) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected