mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 05:27:50 +00:00
const buffer pointer for write[U]Bytes
This commit is contained in:
@@ -155,7 +155,7 @@ void FileWriter::writeByte(atInt8 val)
|
||||
writeUByte(val);
|
||||
}
|
||||
|
||||
void FileWriter::writeUBytes(atUint8* data, atUint64 len)
|
||||
void FileWriter::writeUBytes(const atUint8* data, atUint64 len)
|
||||
{
|
||||
if (!isOpen())
|
||||
THROW_INVALID_OPERATION_EXCEPTION("File not open for writing");
|
||||
@@ -166,7 +166,7 @@ void FileWriter::writeUBytes(atUint8* data, atUint64 len)
|
||||
THROW_IO_EXCEPTION("Unable to write to stream");
|
||||
}
|
||||
|
||||
void FileWriter::writeBytes(atInt8* data, atUint64 len)
|
||||
void FileWriter::writeBytes(const atInt8* data, atUint64 len)
|
||||
{
|
||||
writeUBytes((atUint8*)data, len);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user