ObjFW  Diff

Differences From Artifact [d214a82c1c]:

To Artifact [a377c2db9b]:


249
250
251
252
253
254
255
256
257


258
259
260
261
262
263
264
249
250
251
252
253
254
255


256
257
258
259
260
261
262
263
264







-
-
+
+







						      size: size];
	if ((ret = read(fd, buf, size)) == 0)
		eos = YES;

	return ret;
}

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

	if (fd == -1 || eos || (ret = write(fd, buf, size)) < size)
		@throw [OFWriteFailedException newWithClass: isa
						       size: size];