Use BYTE Win Typedef instead of byte typedef from Minecraft.World

"byte" wasnt working anymore for some reason
This commit is contained in:
GabsPuNs
2026-04-13 17:54:28 -04:00
parent e90e585ef0
commit 40d48948ff
233 changed files with 4751 additions and 930 deletions

View File

@@ -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.
//