ObjFW  Diff

Differences From Artifact [081b9cc60a]:

  • File utils/ofzip/GZIPArchive.m — part of check-in [23e57c5040] at 2017-07-22 23:04:35 on branch trunk — OFFile: Simplify mode This removes "b" for binary and always uses binary, as there is no good reason to not use binary. (user: js size: 3530)

To Artifact [85573597fb]:

  • File utils/ofzip/GZIPArchive.m — part of check-in [ccf8ecbb83] at 2017-08-05 17:24:16 on branch trunk — OFGZIPStream: Prepare for adding write support (user: js size: 3550)

51
52
53
54
55
56
57
58

59
60
61
62
63
64
65
}

- initWithStream: (OF_KINDOF(OFStream *))stream
{
	self = [super init];

	@try {
		_stream = [[OFGZIPStream alloc] initWithStream: stream];

	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}







|
>







51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
}

- initWithStream: (OF_KINDOF(OFStream *))stream
{
	self = [super init];

	@try {
		_stream = [[OFGZIPStream alloc] initWithStream: stream
							  mode: @"r"];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}