mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 09:37:03 +00:00
Replace remaining WinAPI types with standard C++ equivalents
DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
This commit is contained in:
@@ -182,10 +182,10 @@ void DataOutputStream::writeChars(const std::wstring& str) {
|
||||
// Incrementing handled by the writeChar function
|
||||
}
|
||||
|
||||
// Writes a boolean to the underlying output stream as a 1-byte value.
|
||||
// Writes a bool to the underlying output stream as a 1-byte value.
|
||||
// The value true is written out as the value (uint8_t)1; the value false is
|
||||
// written out as the value (uint8_t)0. If no exception is thrown, the counter
|
||||
// written is incremented by 1. Parameters: v - a boolean value to be written.
|
||||
// written is incremented by 1. Parameters: v - a bool value to be written.
|
||||
void DataOutputStream::writeBoolean(bool b) {
|
||||
stream->write(b ? 1 : 0);
|
||||
// TODO 4J Stu - Error handling?
|
||||
|
||||
Reference in New Issue
Block a user