Differences From Artifact [0f38891013]:
- File src/OFFileManager.m — part of check-in [82bd082de3] at 2017-06-11 18:16:56 on branch trunk — Fix compilation on Windows (user: js, size: 30631) [annotate] [blame] [check-ins using]
To Artifact [7bb3d63d81]:
- File
src/OFFileManager.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: 30629) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
925 926 927 928 929 930 931 | if ((buffer = malloc(pageSize)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: pageSize]; @try { sourceFile = [OFFile fileWithPath: source | | | | 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 | if ((buffer = malloc(pageSize)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: pageSize]; @try { sourceFile = [OFFile fileWithPath: source mode: @"r"]; destinationFile = [OFFile fileWithPath: destination mode: @"w"]; while (![sourceFile isAtEndOfStream]) { size_t length; length = [sourceFile readIntoBuffer: buffer length: pageSize]; [destinationFile writeBuffer: buffer |
︙ | ︙ |