]> Dogcows Code - chaz/thecheat/blob - DumpContext.m
eb545b75eb03ab5867369ef9ccc501a1ed25f50b
[chaz/thecheat] / DumpContext.m
1 //
2 // DumpContext.m
3 // The Cheat
4 //
5 // Created by Chaz McGarvey on 12/6/04.
6 // Copyright 2004 Chaz McGarvey. All rights reserved.
7 //
8
9 #import "DumpContext.h"
10
11
12 @implementation DumpContext
13
14
15 - (id)initWithPID:(pid_t)pid
16 {
17 if ( self = [super init] ) {
18 process = pid;
19 regionCount = VMCountRegionsWithAttributes( pid, VMREGION_READABLE );
20 dump = [[NSMutableData alloc] init];
21 }
22 return self;
23 }
24
25 - (void)dealloc
26 {
27 //[lastRegion release];
28 [dump release];
29 [super dealloc];
30 }
31
32
33 @end
This page took 0.030551 seconds and 3 git commands to generate.