mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-05-30 16:45:43 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
"byte" wasnt working anymore for some reason
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
// The buffer's mark is set to the specified offset.
|
||||
// Parameters:
|
||||
// buf - the input buffer.
|
||||
// offset - the offset in the buffer of the first byte to read.
|
||||
// offset - the offset in the buffer of the first BYTE to read.
|
||||
// length - the maximum number of bytes to read from the buffer.
|
||||
ByteArrayInputStream::ByteArrayInputStream(byteArray buf, unsigned int offset, unsigned int length)
|
||||
: pos(offset), mark(offset)
|
||||
@@ -37,11 +37,11 @@ ByteArrayInputStream::ByteArrayInputStream(byteArray buf)
|
||||
this->buf = buf;
|
||||
}
|
||||
|
||||
// Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255.
|
||||
// If no byte is available because the end of the stream has been reached, the value -1 is returned.
|
||||
// Reads the next BYTE of data from this input stream. The value BYTE is returned as an int in the range 0 to 255.
|
||||
// If no BYTE is available because the end of the stream has been reached, the value -1 is returned.
|
||||
// This read method cannot block.
|
||||
// Returns:
|
||||
// the next byte of data, or -1 if the end of the stream has been reached.
|
||||
// the next BYTE of data, or -1 if the end of the stream has been reached.
|
||||
int ByteArrayInputStream::read()
|
||||
{
|
||||
if (pos >= count)
|
||||
@@ -57,11 +57,11 @@ int ByteArrayInputStream::read()
|
||||
// Reads some number of bytes from the input stream and stores them into the buffer array b.
|
||||
// The number of bytes actually read is returned as an integer. This method blocks until input data is available,
|
||||
// end of file is detected, or an exception is thrown.
|
||||
// If the length of b is zero, then no bytes are read and 0 is returned; otherwise, there is an attempt to read at least one byte.
|
||||
// If no byte is available because the stream is at the end of the file, the value -1 is returned; otherwise,
|
||||
// at least one byte is read and stored into b.
|
||||
// If the length of b is zero, then no bytes are read and 0 is returned; otherwise, there is an attempt to read at least one BYTE.
|
||||
// If no BYTE is available because the stream is at the end of the file, the value -1 is returned; otherwise,
|
||||
// at least one BYTE is read and stored into b.
|
||||
//
|
||||
// The first byte read is stored into element b[0], the next one into b[1], and so on. The number of bytes read is,
|
||||
// The first BYTE read is stored into element b[0], the next one into b[1], and so on. The number of bytes read is,
|
||||
// at most, equal to the length of b. Let k be the number of bytes actually read; these bytes will be stored in elements b[0] through b[k-1],
|
||||
// leaving elements b[k] through b[b.length-1] unaffected.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user