mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-23 22:07:09 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -60,7 +60,7 @@ int DataInputStream::read(byteArray b)
|
||||
//This method blocks until input data is available, end of file is detected, or an exception is thrown.
|
||||
//
|
||||
//If len 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 end of file, the value -1 is returned; otherwise, at least one byte is read and stored into b.
|
||||
//If no uint8_t is available because the stream is at end of 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[off], the next one into b[off+1], and so on. The number of bytes read is,
|
||||
//at most, equal to len. Let k be the number of bytes actually read; these bytes will be stored in elements b[off] through b[off+k-1],
|
||||
@@ -115,14 +115,14 @@ bool DataInputStream::readBoolean()
|
||||
//This method is suitable for reading the byte written by the writeByte method of interface DataOutput.
|
||||
//Returns:
|
||||
//the 8-bit value read.
|
||||
byte DataInputStream::readByte()
|
||||
uint8_t DataInputStream::readByte()
|
||||
{
|
||||
if (stream == NULL)
|
||||
{
|
||||
app.DebugPrintf("DataInputStream::readByte() but underlying stream is NULL\n");
|
||||
return 0;
|
||||
}
|
||||
return (byte) stream->read();
|
||||
return (uint8_t) stream->read();
|
||||
}
|
||||
|
||||
unsigned char DataInputStream::readUnsignedByte()
|
||||
@@ -183,7 +183,7 @@ bool DataInputStream::readFully(byteArray b)
|
||||
}
|
||||
else
|
||||
{
|
||||
b[i] = static_cast<byte>(byteRead);
|
||||
b[i] = static_cast<uint8_t>(byteRead);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user