ObjFW  Diff

Differences From Artifact [14e7076f02]:

To Artifact [57d47bf4a5]:


99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
	self = [super init];

	@try {
		OFFile *file = [[OFFile alloc] initWithPath: path
						       mode: @"rb"];

		itemSize = 1;
		data = NULL;

		@try {
			char *buffer = [self allocMemoryWithSize: of_pagesize];

			while (![file isAtEndOfStream]) {
				size_t length;








<







99
100
101
102
103
104
105

106
107
108
109
110
111
112
	self = [super init];

	@try {
		OFFile *file = [[OFFile alloc] initWithPath: path
						       mode: @"rb"];

		itemSize = 1;


		@try {
			char *buffer = [self allocMemoryWithSize: of_pagesize];

			while (![file isAtEndOfStream]) {
				size_t length;

162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
}

- initWithBase64EncodedString: (OFString*)string
{
	self = [super init];

	itemSize = 1;
	data = NULL;

	if (!of_base64_decode(self, [string cString], [string cStringLength])) {
		Class c = isa;
		[self release];
		@throw [OFInvalidEncodingException newWithClass: c];
	}








<







161
162
163
164
165
166
167

168
169
170
171
172
173
174
}

- initWithBase64EncodedString: (OFString*)string
{
	self = [super init];

	itemSize = 1;


	if (!of_base64_decode(self, [string cString], [string cStringLength])) {
		Class c = isa;
		[self release];
		@throw [OFInvalidEncodingException newWithClass: c];
	}