DVUI

update

Make a new id by combining id with a name, commonly a string key like "__value". This is how dvui tracks things in dataGet/dataSet, animation, and timer.

Parameters

#
id:Id
Id
name:[]const u8
[]const u8

Source

Implementation

#
pub fn update(id: Id, name: []const u8) Id {
        var h = fnv.init();
        h.value = id.asU64();
        h.update(name);
        return @enumFromInt(h.final());
    }