MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / MutateUInt

Method MutateUInt

native/thirdpart/flatbuffers/flexbuffers.h:681–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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