Reece
510928e62e
TODO: investigate registering an int3 signal handler to prevent crashing under internal builds [*] Amend MemoryViews [*] Begin shifting towards MemoryView based binary APIs [*] Fix public RSA key leak [+] Some clean up and possible bug fixes
26 lines
744 B
C++
26 lines
744 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: FileStream.hpp
|
|
Date: 2021-6-10
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO::FS
|
|
{
|
|
class IFileStream
|
|
{
|
|
public:
|
|
virtual AuUInt64 GetOffset() = 0;
|
|
virtual bool SetOffset(AuUInt64 offset) = 0;
|
|
virtual AuUInt64 GetLength() = 0;
|
|
virtual bool Read(Memory::MemoryViewStreamWrite parameters) = 0;
|
|
virtual bool Write(Memory::MemoryViewStreamRead parameters) = 0;
|
|
virtual void Close() = 0;
|
|
virtual void Flush() = 0;
|
|
};
|
|
|
|
AUKN_SHARED_API(OpenRead, IFileStream, const AuString &path);
|
|
AUKN_SHARED_API(OpenWrite, IFileStream, const AuString &path);
|
|
} |