cpp-common/bt2: add `CommonStringField::length` method
[babeltrace.git] / src / cpp-common / bt2 / field.hpp
index 0efd7e74659caf0b821e08a2f2b16b62dda1e8b1..e051a806e4ab2ca1104bcbf42e2d24e93db78e2b 100644 (file)
@@ -1008,6 +1008,11 @@ public:
     {
         return bt_field_string_get_value(this->libObjPtr());
     }
+
+    std::uint64_t length() const noexcept
+    {
+        return bt_field_string_get_length(this->libObjPtr());
+    }
 };
 
 using StringField = CommonStringField<bt_field>;
This page took 0.023893 seconds and 4 git commands to generate.