MCPcopy Create free account
hub / github.com/aiekick/ImGuiFontStudio / Encode85Byte

Function Encode85Byte

src/Generator/Generator.cpp:595–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593stb_uint stb_compress(stb_uchar *out, stb_uchar *in, stb_uint len);
594
595char Encode85Byte(unsigned int x)
596{
597 x = (x % 85) + 35;
598 return (char)((x >= (uint32_t)'\\') ? x + 1 : x);
599}
600
601/* 03/03/2020 23h38 it work like a charm (Wouhoooooo!!)
602will generate cpp fille with/without header

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected