]> Dogcows Code - chaz/thecheat/blobdiff - DumpContext.m
The Cheat 1.2
[chaz/thecheat] / DumpContext.m
diff --git a/DumpContext.m b/DumpContext.m
new file mode 100644 (file)
index 0000000..eb545b7
--- /dev/null
@@ -0,0 +1,33 @@
+//
+//  DumpContext.m
+//  The Cheat
+//
+//  Created by Chaz McGarvey on 12/6/04.
+//  Copyright 2004 Chaz McGarvey. All rights reserved.
+//
+
+#import "DumpContext.h"
+
+
+@implementation DumpContext
+
+
+- (id)initWithPID:(pid_t)pid
+{
+       if ( self = [super init] ) {
+               process = pid;
+               regionCount = VMCountRegionsWithAttributes( pid, VMREGION_READABLE );
+               dump = [[NSMutableData alloc] init];
+       }
+       return self;
+}
+
+- (void)dealloc
+{
+       //[lastRegion release];
+       [dump release];
+       [super dealloc];
+}
+
+
+@end
This page took 0.019272 seconds and 4 git commands to generate.