mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-05 19:42:54 +00:00
Add notes about minor changed file handle behavior in 1.109.0 (#2203)
This commit is contained in:
parent
5dfc401b45
commit
b440b964b7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user