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

Method getFixed64

valdi_protobuf/src/valdi_protobuf/Field.cpp:537–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537uint64_t Field::getFixed64() const {
538 switch (_type) {
539 case InternalType::Varint:
540 return _data.varint;
541 case InternalType::Fixed64:
542 return _data.fixed64;
543 case InternalType::Fixed32:
544 return static_cast<uint64_t>(_data.fixed32);
545 case InternalType::Unset:
546 case InternalType::Raw:
547 case InternalType::Ref:
548 return 0;
549 }
550}
551
552void Field::setFixed64(uint64_t v) {
553 FieldStorage storage;

Callers 3

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64