MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / LineNumForPcCb

Method LineNumForPcCb

Bcore/src/main/cpp/dex/dex_file.cc:511–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511bool DexFile::LineNumForPcCb(void* raw_context, const PositionInfo& entry) {
512 LineNumFromPcContext* context = reinterpret_cast<LineNumFromPcContext*>(raw_context);
513
514 // We know that this callback will be called in
515 // ascending address order, so keep going until we find
516 // a match or we've just gone past it.
517 if (entry.address_ > context->address_) {
518 // The line number from the previous positions callback
519 // wil be the final result.
520 return true;
521 } else {
522 context->line_num_ = entry.line_;
523 return entry.address_ == context->address_;
524 }
525}
526
527// Read a signed integer. "zwidth" is the zero-based byte count.
528int32_t DexFile::ReadSignedInt(const uint8_t* ptr, int zwidth) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected