ObjFW  Diff

Differences From Artifact [a25cf5ad1f]:

To Artifact [b556a211fc]:


188
189
190
191
192
193
194






195


196
197
198
199
200
201
202
188
189
190
191
192
193
194
195
196
197
198
199
200

201
202
203
204
205
206
207
208
209







+
+
+
+
+
+
-
+
+







		@try {
			cache = [self resizeMemory: cache
					    toSize: cache_len + len];
		} @catch (OFException *e) {
			[self freeMemory: tmp];
			@throw e;
		}

		/*
		 * It's possible that cache_len + len is 0 and thus cache was
		 * set to NULL by resizeMemory:toSize:.
		 */
		if (cache != NULL)
		memcpy(cache + cache_len, tmp, len);
			memcpy(cache + cache_len, tmp, len);

		cache_len += len;
	}
}

- (size_t)writeNBytes: (size_t)size
	   fromBuffer: (const char*)buf
{