ObjFW  Diff

Differences From Artifact [c7c44248ee]:

  • File src/OFSubdata.m — part of check-in [9d802a786d] at 2025-01-01 12:58:18 on branch trunk — Update copyright (user: js size: 1342) [more...]

To Artifact [c382b37ab0]:

  • File src/OFSubdata.m — part of check-in [305ad16fc4] at 2025-04-14 22:52:23 on branch trunk — Continue migrating to the ARC functions for RR (user: js size: 1350) [more...]

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
42
43

44
45
46
47
48
49
50
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41
42

43
44
45
46
47
48
49
50







-
+








-
+







	self = [super init];

	@try {
		/* Should usually be retain, as it's useless with a copy */
		_data = [data copy];
		_range = range;
	} @catch (id e) {
		[self release];
		objc_release(self);
		@throw e;
	}

	return self;
}

- (void)dealloc
{
	[_data release];
	objc_release(_data);

	[super dealloc];
}

- (size_t)count
{
	return _range.length;