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

Method createLine

examples/triage/byte.cpp:309–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307
308
309ByteViewLine ByteView::createLine(uint64_t addr, size_t length, bool separator)
310{
311 if (separator)
312 {
313 return ByteViewLine {addr, length, "", true};
314 }
315 else
316 {
317 BinaryNinja::DataBuffer data = m_data->ReadBuffer(addr, length);
318 QString line;
319 for (size_t i = 0; i < data.GetLength(); i++)
320 line.append(QString(g_byteMapping[data[i]]));
321 return ByteViewLine {addr, length, line, false};
322 }
323}
324
325
326bool ByteView::cachePreviousLines()

Callers

nothing calls this directly

Calls 3

ReadBufferMethod · 0.45
GetLengthMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected