mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-11 19:03:03 +00:00
Fix the docs for ReadHandle.read's "count"
This was copied over from the old binary handle, and so states we always return a single number if no count is given. This is only the case when the file is opened in binary mode.
This commit is contained in:
@@ -100,8 +100,8 @@ public abstract class AbstractHandle {
|
||||
/**
|
||||
* Read a number of bytes from this file.
|
||||
*
|
||||
* @param countArg The number of bytes to read. When absent, a single byte will be read <em>as a number</em>. This
|
||||
* may be 0 to determine we are at the end of the file.
|
||||
* @param countArg The number of bytes to read. This may be 0 to determine we are at the end of the file. When
|
||||
* absent, a single byte will be read.
|
||||
* @return The read bytes.
|
||||
* @throws LuaException When trying to read a negative number of bytes.
|
||||
* @throws LuaException If the file has been closed.
|
||||
|
||||
Reference in New Issue
Block a user