+ return bt2_packet._Packet._create_from_ptr(packet_ptr)
+
+ def _user_attributes(self, user_attributes):
+ value = bt2_value.create_value(user_attributes)
+ utils._check_type(value, bt2_value.MapValue)
+ native_bt.stream_set_user_attributes(self._ptr, value._ptr)
+
+ _user_attributes = property(
+ fget=_StreamConst.user_attributes.fget, fset=_user_attributes
+ )
+
+ def _name(self, name):
+ utils._check_str(name)
+ native_bt.stream_set_name(self._ptr, name)
+
+ _name = property(fget=_StreamConst.name.fget, fset=_name)