MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / normalizeCount

Method normalizeCount

agent/debugger.ts:870–877  ·  view source on GitHub ↗
(value: number, fallback: number)

Source from the content-addressed store, hash-verified

868 }
869
870 private normalizeCount(value: number, fallback: number): number {
871 if (!Number.isFinite(value)) {
872 return fallback;
873 }
874
875 const normalized = Math.floor(value);
876 return normalized > 0 ? normalized : fallback;
877 }
878
879 private getRegisterValue(name: string): NativePointer | null {
880 const session = this.getSession(this.currentThreadId);

Callers 3

stepMethod · 0.95
disassembleMethod · 0.95
stackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected