mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-03 20:59:12 +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:
parent
359c8d6652
commit
9ccee75a99
@ -32,7 +32,7 @@ public record PrettyDataProvider<T extends DataProvider>(T provider) implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
private record Output(CachedOutput output) implements CachedOutput {
|
private record Output(CachedOutput output) implements CachedOutput {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("deprecation")
|
||||||
private static final HashFunction HASH_FUNCTION = Hashing.sha1();
|
private static final HashFunction HASH_FUNCTION = Hashing.sha1();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -100,8 +100,8 @@ public abstract class AbstractHandle {
|
|||||||
/**
|
/**
|
||||||
* Read a number of bytes from this file.
|
* 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
|
* @param countArg The number of bytes to read. This may be 0 to determine we are at the end of the file. When
|
||||||
* may be 0 to determine we are at the end of the file.
|
* absent, a single byte will be read.
|
||||||
* @return The read bytes.
|
* @return The read bytes.
|
||||||
* @throws LuaException When trying to read a negative number of bytes.
|
* @throws LuaException When trying to read a negative number of bytes.
|
||||||
* @throws LuaException If the file has been closed.
|
* @throws LuaException If the file has been closed.
|
||||||
|
Loading…
Reference in New Issue
Block a user