MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / MutateUInt

Method MutateUInt

Libs/flatbuffers/flexbuffers.h:682–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680 }
681
682 bool MutateUInt(uint64_t u) {
683 if (type_ == FBT_UINT) {
684 return Mutate(data_, u, parent_width_, WidthU(u));
685 } else if (type_ == FBT_INDIRECT_UINT) {
686 return Mutate(Indirect(), u, byte_width_, WidthU(u));
687 } else if (type_ == FBT_INT) {
688 auto i = static_cast<int64_t>(u);
689 return Mutate(data_, i, parent_width_, WidthI(i));
690 } else if (type_ == FBT_INDIRECT_INT) {
691 auto i = static_cast<int64_t>(u);
692 return Mutate(Indirect(), i, byte_width_, WidthI(i));
693 } else {
694 return false;
695 }
696 }
697
698 bool MutateFloat(float f) {
699 if (type_ == FBT_FLOAT) {

Callers

nothing calls this directly

Calls 3

WidthUFunction · 0.85
IndirectFunction · 0.85
WidthIFunction · 0.85

Tested by

no test coverage detected