mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
patterns: Added basic file i/o functions
This commit is contained in:
@@ -59,7 +59,9 @@ namespace hex {
|
||||
|
||||
if (getSize() == 0) return { };
|
||||
|
||||
return reinterpret_cast<char*>(readBytes(numBytes).data());
|
||||
auto bytes = readBytes(numBytes);
|
||||
|
||||
return { reinterpret_cast<char*>(bytes.data()), bytes.size() };
|
||||
}
|
||||
|
||||
void File::write(const u8 *buffer, size_t size) {
|
||||
|
||||
Reference in New Issue
Block a user