Differences From Artifact [0671a78655]:
- File
src/OFStream.m
— part of check-in
[a0fd103a0b]
at
2021-03-07 02:36:04
on branch trunk
— Style change: Allow more than 1 argument per line
This is only migrating some places, others will be migrated as they are
touched. (user: js, size: 38981) [annotate] [blame] [check-ins using]
To Artifact [7e32841415]:
- File src/OFStream.m — part of check-in [1b82d3bf4f] at 2021-03-07 20:25:21 on branch trunk — *.m: Fold methods into one line where it fits (user: js, size: 38976) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
123 124 125 126 127 128 129 | { if (_readBufferLength > 0) return false; return [self lowlevelIsAtEndOfStream]; } | | < | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | { if (_readBufferLength > 0) return false; return [self lowlevelIsAtEndOfStream]; } - (size_t)readIntoBuffer: (void *)buffer length: (size_t)length { if (_readBufferLength == 0) { /* * For small sizes, it is cheaper to read more and cache the * remainder - even if that means more copying of data - than * to do a syscall for every read. */ |
︙ | ︙ | |||
613 614 615 616 617 618 619 | [data addItems: buffer count: length]; } } @finally { free(buffer); } [data makeImmutable]; | < | 612 613 614 615 616 617 618 619 620 621 622 623 624 625 | [data addItems: buffer count: length]; } } @finally { free(buffer); } [data makeImmutable]; return data; } - (OFString *)readStringWithLength: (size_t)length { return [self readStringWithLength: length encoding: OF_STRING_ENCODING_UTF_8]; |
︙ | ︙ |