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

Method getRaw

valdi_protobuf/src/valdi_protobuf/Field.cpp:631–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631Field::Raw Field::getRaw() const {
632 switch (_type) {
633 case InternalType::Raw:
634 return Field::Raw(_data.raw, _rawLength);
635 case InternalType::Varint:
636 case InternalType::Fixed64:
637 case InternalType::Fixed32:
638 case InternalType::Unset:
639 case InternalType::Ref:
640 return Field::Raw(nullptr, 0);
641 }
642}
643
644void Field::setRaw(const Field::Raw& raw) {
645 FieldStorage storage;

Callers 10

fieldToMessageIndexMethod · 0.80
isValueEqualMethod · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
toPackedRepeatedFunction · 0.80
getFieldAsStringMethod · 0.80
postprocessForFieldMethod · 0.80
addFileDescriptorSetMethod · 0.80
addSymbolFromFieldMethod · 0.80

Calls 1

RawClass · 0.70

Tested by 2

TESTFunction · 0.64
TEST_FFunction · 0.64