MCPcopy Create free account
hub / github.com/beefytech/Beef / EncodeULEB32

Method EncodeULEB32

BeefySysLib/Common.cpp:516–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
515 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '_'};
516void Beefy::EncodeULEB32(uint64 value, StringImpl& buffer)
517{
518 do
519 {
520 uint8 byteVal = value & 0x1f;
521 value >>= 5;
522 if (value != 0)
523 byteVal |= 0x20; // Mark this byte to show that more bytes will follow
524 buffer.Append(c64bToChar[byteVal]);
525 }
526 while (value != 0);
527}
528
529#ifndef BF_SMALL
530void Beefy::ExactMinimalFloatToStr(float f, char* str)

Callers

nothing calls this directly

Calls 1

AppendMethod · 0.80

Tested by

no test coverage detected