| 535 | } |
| 536 | |
| 537 | uint64_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 | |
| 552 | void Field::setFixed64(uint64_t v) { |
| 553 | FieldStorage storage; |
no outgoing calls