ObjFW  History of src/OFSeekableStream.m of 7e5c81e18629e9a7

History of file src/OFSeekableStream.m at check-in 7e5c81e18629e9a7

2024-04-03
02:16
Change license to LGPLv3 only file: [6663c9bf74] check-in: [7413a728a7] user: js, branch: trunk, size: 1578 [annotate] [blame] [check-ins using] [diff]
2024-01-02
17:17
Update copyright file: [ae8338b495] check-in: [26ddd2e4e4] user: js, branch: trunk, size: 1370 [annotate] [blame] [check-ins using] [diff]
2023-01-06
09:04
Update copyright file: [2562cc911f] check-in: [8939cbdb52] user: js, branch: trunk, size: 1370 [annotate] [blame] [check-ins using] [diff]
2022-08-27
20:58
OFSeekableStream: Add OFSeekWhence enum file: [b6c980d4ae] check-in: [73f5e3aa84] user: js, branch: trunk, size: 1370 [annotate] [blame] [check-ins using] [diff]
20:39
Rename OFFileOffset -> OFStreamOffset file: [562c4a07bd] check-in: [51589c6496] user: js, branch: trunk, size: 1344 [annotate] [blame] [check-ins using] [diff]
2022-02-12
07:46
Update copyright file: [9e766aeca1] check-in: [1a86b8175b] user: js, branch: trunk, size: 1332 [annotate] [blame] [check-ins using] [diff]
2021-04-17
22:45
Rename of_(re)alloc and add OFFreeMemory file: [6ce5b58b54] check-in: [498074dab9] user: js, branch: new-naming-convention, size: 1332 [annotate] [blame] [check-ins using] [diff]
14:19
of_offset_t -> OFFileOffset file: [a0fa429021] check-in: [e69db838d9] user: js, branch: new-naming-convention, size: 1324 [annotate] [blame] [check-ins using] [diff]
2021-03-07
02:36
Style change: Allow more than 1 argument per line

This is only migrating some places, others will be migrated as they are
touched. file: [4e1737f5f5] check-in: [a0fd103a0b] user: js, branch: trunk, size: 1320 [annotate] [blame] [check-ins using] [diff]

2021-01-02
22:04
Update copyright file: [e6908a8ef1] check-in: [374e1a1bfa] user: js, branch: trunk, size: 1344 [annotate] [blame] [check-ins using] [diff]
2020-11-05
02:27
Further reduce usage of -[allocMemoryWithSize:] file: [b1692ec182] check-in: [da1fb6b21c] user: js, branch: trunk, size: 1433 [annotate] [blame] [check-ins using] [diff]
2020-01-02
01:51
Update copyright file: [57a7a2c048] check-in: [c7f0229795] user: js, branch: trunk, size: 1446 [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
Update copyright file: [874a3af302] check-in: [0509d7a844] user: js, branch: trunk, size: 1443 [annotate] [blame] [check-ins using] [diff]
2018-01-03
19:49
Update copyright notice file: [dad4e3a695] check-in: [7e5c81e186] user: js, branch: trunk, size: 1437 [annotate] [blame] [check-ins using] [diff]
2017-11-05
18:25
Use -[isMemberOfClass:] instead of object_getClass file: [7d5b210453] check-in: [0a4565fb0f] user: js, branch: trunk, size: 1414 [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
Do not use implicit method return types

Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. file: [b98ac3f694] check-in: [2f4e0df8be] user: js, branch: trunk, size: 1415 [annotate] [blame] [check-ins using] [diff]

2017-01-09
17:36
Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. file: [5b2fde875e] check-in: [44f45c2e35] user: js, branch: trunk, size: 1401 [annotate] [blame] [check-ins using] [diff]

2016-05-05
19:54
OFStream: Cache small reads to reduce syscalls

In some situations, this is 50x faster. file: [fd840df49d] check-in: [a7d66e7ab2] user: js, branch: trunk, size: 1395 [annotate] [blame] [check-ins using] [diff]

2016-01-03
00:41
Update copyright

While at it, also update the mail address. file: [4427169ba3] check-in: [2a27cf3000] user: js, branch: trunk, size: 1369 [annotate] [blame] [check-ins using] [diff]

2015-01-03
20:57
Update copyright file: [321db4b1d6] check-in: [cfd374b906] user: js, branch: trunk, size: 1365 [annotate] [blame] [check-ins using] [diff]
20:42
Introduce and use of_offset_t instead of off_t

The reason for this is that some systems, for example Android, use
32 bits for off_t while having size related fields like st_size as
long long. file: [8b8b0c6a0a] check-in: [46b89b1c8e] user: js, branch: trunk, size: 1359 [annotate] [blame] [check-ins using] [diff]

2014-06-21
21:43
Move all macros from OFObject.h to macros.h

This means that OFObject.h imports macros.h now, making it unnecessary
to manually import macros.h in almost every file. And while at it, also
import autorelease.h in OFObject.h, so that this doesn't need to be
manually imported in almost every file as well. file: [a7e1d973bb] check-in: [13ee56edf3] user: js, branch: trunk, size: 1337 [annotate] [blame] [check-ins using] [diff]

2014-05-31
17:57
OFStream: Add -[hasDataInReadBuffer].

This replaces -[numberOfBytesInReadBuffer], as it's not always known how
many bytes there are exactly and thus the number would often be wrong
(e.g. because data is compressed). file: [f1a559726a] check-in: [acc999a75e] user: js, branch: trunk, size: 1357 [annotate] [blame] [check-ins using] [diff]

2014-01-04
00:24
Update copyright. file: [c1a75862c3] check-in: [3b97fc3cd9] user: js, branch: trunk, size: 1327 [annotate] [blame] [check-ins using] [diff]
2013-11-23
01:27
Add OF_UNRECOGNIZED_SELECTOR. file: [4c1c9e6a22] check-in: [6e19bd47ee] user: js, branch: trunk, size: 1321 [annotate] [blame] [check-ins using] [diff]
01:12
Add OF_INVALID_INIT_METHOD. file: [075ee49105] check-in: [35dafd5c57] user: js, branch: trunk, size: 1325 [annotate] [blame] [check-ins using] [diff]
2013-08-12
13:26
Fix OFSeekableStream.

-[seekToOffset:whence:] now works correctly when whence is SEEK_CUR.
Additionally, the new offset is returned now. file: [7c51ea7ed3] check-in: [d101b6f8b4] user: js, branch: trunk, size: 1110 [annotate] [blame] [check-ins using] [diff]

2013-02-18
21:53
Rename -[OFStream pendingBytes].

It is now called -[numberOfBytesInReadBuffer].

Additionally, this commit renames OFStream's _cache to _readBuffer. file: [7b96bce1bd] check-in: [efe7be259d] user: js, branch: trunk, size: 1002 [annotate] [blame] [check-ins using] [diff]

2013-02-12
18:22
Prefix all ivars with an underscore. file: [b3e35f31cf] check-in: [e40729d406] user: js, branch: trunk, size: 987 [annotate] [blame] [check-ins using] [diff]
2013-01-09
22:24
Update copyright. file: [52f33aa767] check-in: [813c00ccf0] user: js, branch: trunk, size: 984 [annotate] [blame] [check-ins using] [diff]
2012-12-22
15:37
Add -[doesNotRecognizeSelector:]. file: [432d090484] check-in: [917ce5754c] user: js, branch: trunk, size: 978 [annotate] [blame] [check-ins using] [diff]
2012-10-29
13:03
Simplify seeking. file: [ff18537f89] check-in: [dc1093e2a5] user: js, branch: trunk, size: 1020 [annotate] [blame] [check-ins using] [diff]
2012-09-16
15:43
OFStream: Use lowlevel as prefix instead of _. file: [3a3c16de1f] check-in: [61c1932caf] user: js, branch: trunk, size: 1661 [annotate] [blame] [check-ins using] [diff]
2012-07-12
01:28
Don't access isa directly. file: [e3dd88a6e5] check-in: [8892ae9fcc] user: js, branch: trunk, size: 1619 [annotate] [blame] [check-ins using] [diff]
2012-01-05
00:56
Update copyright. file: [0d216f9606] check-in: [ce70e17b38] user: js, branch: trunk, size: 1592 [annotate] [blame] [check-ins using] [diff]
2011-09-22
23:25
Exceptions are now autoreleased.

This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.

So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. file: [d2de206fb4] check-in: [e1e7ffa903] user: js, branch: trunk, size: 1586 [annotate] [blame] [check-ins using] [diff]

2011-04-22
20:19
More style improvements. file: [cbcf953b58] check-in: [e76a7f52c1] user: js, branch: trunk, size: 1571 [annotate] [blame] [check-ins using] [diff]
18:00
More style improvements. file: [693313aa14] check-in: [4814266280] user: js, branch: trunk, size: 1607 [annotate] [blame] [check-ins using] [diff]
2011-03-24
19:42
Get rid of OFExceptions.h. file: [f25fa4bf66] check-in: [cda44767f4] user: js, branch: trunk, size: 1559 [annotate] [blame] [check-ins using] [diff]
2011-01-01
20:19
Change license. file: [738eaeca10] check-in: [da6b3d26cb] user: js, branch: trunk, size: 1545 [annotate] [blame] [check-ins using] [diff]
2010-09-20
11:26
Better API for the writte buffer of streams.
Can now be disabled without flushing and then be flushed later.
file: [6733c391eb] check-in: [c3c2bcca46] user: js, branch: trunk, size: 1289 [annotate] [blame] [check-ins using] [diff]
2010-04-17
22:27
New ivar naming convention.

ivars are now named like this: thisIsAnIVar. If an accessor exists for
the ivar, the ivar is named like the accessor. This is required for
@property to work. file: [13775b9538] check-in: [37db8f0fb3] user: js, branch: trunk, size: 1367 [annotate] [blame] [check-ins using] [diff]

15:46
Don't return self where not necessary, return void or something useful. file: [ebbb4dbb54] check-in: [062a052b50] user: js, branch: trunk, size: 1371 [annotate] [blame] [check-ins using] [diff]
2010-04-09
20:11
Rename -[cacheWrites] to -[bufferWrites]. file: [8a407eb24d] check-in: [c5c17fdd30] user: js, branch: trunk, size: 1374 [annotate] [blame] [check-ins using] [diff]
17:06
Flush the write cache before seeking. file: [943a2b61b5] check-in: [c509ecf6c7] user: js, branch: trunk, size: 1371 [annotate] [blame] [check-ins using] [diff]
15:12
Added: Add OFSeekableStream and implement seeking for OFFile. file: [2f22e7d287] check-in: [0890f73f75] user: js, branch: trunk, size: 1289 [annotate] [blame] [check-ins using]