MCPcopy Create free account
hub / github.com/Snapchat/Valdi / hash

Method hash

snap_drawing/src/snap_drawing/cpp/Text/FontStyle.cpp:259–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259size_t FontStyle::hash() const {
260 return static_cast<size_t>(_width) | static_cast<size_t>(_weight) << 8 | static_cast<size_t>(_slant) << 16;
261}
262
263bool FontStyle::operator==(const FontStyle& other) const {
264 return _width == other._width && _weight == other._weight && _slant == other._slant;

Callers 4

md5.spec.tsFile · 0.45
operator()Method · 0.45
insertMethod · 0.45
operator()Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected