mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 16:08:11 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -54,14 +54,14 @@ FileOutputStream::~FileOutputStream()
|
||||
CloseHandle( m_fileHandle );
|
||||
}
|
||||
|
||||
//Writes the specified byte to this file output stream. Implements the write method of OutputStream.
|
||||
//Writes the specified BYTE to this file output stream. Implements the write method of OutputStream.
|
||||
//Parameters:
|
||||
//b - the byte to be written.
|
||||
//b - the BYTE to be written.
|
||||
void FileOutputStream::write(unsigned int b)
|
||||
{
|
||||
DWORD numberOfBytesWritten;
|
||||
|
||||
byte value = static_cast<byte>(b);
|
||||
BYTE value = static_cast<BYTE>(b);
|
||||
|
||||
BOOL result = WriteFile(
|
||||
m_fileHandle, // handle to file
|
||||
@@ -81,7 +81,7 @@ void FileOutputStream::write(unsigned int b)
|
||||
}
|
||||
}
|
||||
|
||||
//Writes b.length bytes from the specified byte array to this file output stream.
|
||||
//Writes b.length bytes from the specified BYTE array to this file output stream.
|
||||
//Parameters:
|
||||
//b - the data.
|
||||
void FileOutputStream::write(byteArray b)
|
||||
@@ -106,7 +106,7 @@ void FileOutputStream::write(byteArray b)
|
||||
}
|
||||
}
|
||||
|
||||
//Writes len bytes from the specified byte array starting at offset off to this file output stream.
|
||||
//Writes len bytes from the specified BYTE array starting at offset off to this file output stream.
|
||||
//Parameters:
|
||||
//b - the data.
|
||||
//off - the start offset in the data.
|
||||
|
||||
Reference in New Issue
Block a user