MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / AppendSingleSizeToken

Method AppendSingleSizeToken

lang/rust/pseudorust.cpp:219–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219void PseudoRustFunction::AppendSingleSizeToken(
220 size_t size, BNInstructionTextTokenType type, HighLevelILTokenEmitter& emitter)
221{
222 char sizeStr[32];
223
224 switch (size)
225 {
226 case 0:
227 break;
228 case 1:
229 emitter.Append(type, "B");
230 break;
231 case 2:
232 emitter.Append(type, "W");
233 break;
234 case 4:
235 emitter.Append(type, "D");
236 break;
237 case 8:
238 emitter.Append(type, "Q");
239 break;
240 case 10:
241 emitter.Append(type, "T");
242 break;
243 case 16:
244 emitter.Append(type, "O");
245 break;
246 default:
247 snprintf(sizeStr, sizeof(sizeStr), "%" PRIuPTR "", size);
248 emitter.Append(type, sizeStr);
249 break;
250 }
251}
252
253
254void PseudoRustFunction::AppendComparison(const string& comparison, const HighLevelILInstruction& instr,

Callers

nothing calls this directly

Calls 1

AppendMethod · 0.45

Tested by

no test coverage detected