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

Method ReadCString

binaryreader.cpp:499–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497
498
499string BinaryReader::ReadCString(size_t maxSize)
500{
501 string result;
502 try
503 {
504 for (size_t i = 0; i < maxSize; i++)
505 {
506 char cur = Read8();
507 if (cur == 0)
508 break;
509 result.push_back(cur);
510 }
511 }
512 catch (ReadException&)
513 {
514 ;
515 }
516 return result;
517}

Callers 9

LoadClassesMethod · 0.45
LoadCategoriesMethod · 0.45
LoadProtocolsMethod · 0.45
ReadMethodListMethod · 0.45
ReadIvarListMethod · 0.45
ProcessCFStringsMethod · 0.45
TypeDescriptorMethod · 0.45
GetTypeInfoFunction · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected