diff options
author | Erich Eckner <git@eckner.net> | 2015-09-29 16:12:17 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2015-09-29 16:12:17 +0200 |
commit | 00a32784af88363979a94a86196d463326d3c27d (patch) | |
tree | 0ff43d409f4acbeec23a9b372e2889019c57ef62 | |
parent | 91d297c99e0ba84ec80a4eb4c3a3788b50b70299 (diff) | |
download | units-00a32784af88363979a94a86196d463326d3c27d.tar.xz |
hexDump in lowlevelunit.pas eingefügt
-rw-r--r-- | lowlevelunit.pas | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas index 60de043..0bc4c33 100644 --- a/lowlevelunit.pas +++ b/lowlevelunit.pas @@ -78,6 +78,8 @@ function tExtPointToStr(p: tExtPoint): string; function tIntPointToStr(p: tIntPoint): string; procedure fehler(s: string); +function hexDump(p: pointer; cnt: longint): string; + implementation var _cpuLastUsed,_cpuLastIdle: int64; @@ -647,6 +649,15 @@ begin raise exception.create(s); end; +function hexDump(p: pointer; cnt: longint): string; +var + i: longint; +begin + result:=''; + for i:=0 to cnt-1 do + result:=result+inttohex((pByte(p)+i)^,2); +end; + begin _cpuLastUsed:=0; _cpuLastIdle:=0; |