[+] Missing read/write AuByteBuffer by views
This commit is contained in:
parent
f0ae1659b6
commit
16f7d985fc
@ -491,6 +491,16 @@ namespace Aurora::Memory
|
||||
inline auline AuUInt Write(const void *buffer, AuUInt requestLength);
|
||||
inline auline AuUInt Read(void *out, AuUInt requestedLength, bool peek = false);
|
||||
|
||||
inline auline AuUInt Write(const MemoryViewRead &read)
|
||||
{
|
||||
return Write(read.ptr, read.length);
|
||||
}
|
||||
|
||||
inline auline AuUInt Read(const MemoryViewWrite &write)
|
||||
{
|
||||
return Read(write.ptr, write.length);
|
||||
}
|
||||
|
||||
// String API
|
||||
|
||||
inline bool WriteString(std::string_view string, EStringType type = EStringType::eStringDword, Locale::ECodePage codepage = Locale::ECodePage::eUTF8);
|
||||
|
Loading…
Reference in New Issue
Block a user