1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-07-05 11:32:53 +00:00

Add notes about minor changed file handle behavior in 1.109.0 (#2203)

This commit is contained in:
JackMacWindows 2025-05-25 16:24:26 -04:00 committed by GitHub
parent 5dfc401b45
commit b440b964b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,6 +76,7 @@ public abstract class AbstractHandle {
* @cc.treturn [2] nil If seeking failed.
* @cc.treturn string The reason seeking failed.
* @cc.since 1.80pr1.9
* @cc.changed 1.109.0 Now available on all file handles, not just binary-mode handles.
*/
public Object @Nullable [] seek(Optional<String> whence, Optional<Long> offset) throws LuaException {
checkOpen();
@ -179,6 +180,8 @@ public abstract class AbstractHandle {
* @throws LuaException If the file has been closed.
* @cc.treturn string|nil The remaining contents of the file, or {@code nil} in the event of an error.
* @cc.since 1.80pr1
* @cc.changed 1.109.0 Binary-mode handles are now consistent with non-binary files, and return an empty string at
* the end of the file, rather than {@code nil}.
*/
public Object @Nullable [] readAll() throws LuaException {
checkOpen();