ObjFW  Diff

Differences From Artifact [8b48822fc3]:

To Artifact [dd95d5c2a1]:


656
657
658
659
660
661
662
663
664
665
666
667
668





669
670
671
672
673
674
675
656
657
658
659
660
661
662






663
664
665
666
667
668
669
670
671
672
673
674







-
-
-
-
-
-
+
+
+
+
+







		size_t pageSize = [OFSystemInfo pageSize];
		OFStream *sourceStream = nil;
		OFStream *destinationStream = nil;
		char *buffer;

		buffer = OFAllocMemory(1, pageSize);
		@try {
			sourceStream = [[OFURLHandler handlerForURL: source]
			    openItemAtURL: source
				     mode: @"r"];
			destinationStream = [[OFURLHandler handlerForURL:
			    destination] openItemAtURL: destination
						  mode: @"w"];
			sourceStream = [OFURLHandler openItemAtURL: source
							      mode: @"r"];
			destinationStream = [OFURLHandler
			    openItemAtURL: destination
				     mode: @"w"];

			while (!sourceStream.atEndOfStream) {
				size_t length;

				length = [sourceStream
				    readIntoBuffer: buffer
					    length: pageSize];