93 lines
2.3 KiB
C++
93 lines
2.3 KiB
C++
|
/***
|
||
|
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: FSOverlappedUtilities.cpp
|
||
|
Date: 2023-1-26
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#include <Source/RuntimeInternal.hpp>
|
||
|
#include "FS.hpp"
|
||
|
#include "FSOverlappedUtilities.hpp"
|
||
|
|
||
|
namespace Aurora::IO::FS
|
||
|
{
|
||
|
struct OverlappedStatOperation :
|
||
|
virtual BaseOverlappedOperation,
|
||
|
IOverlappedStatOperation
|
||
|
{
|
||
|
Stat stat;
|
||
|
|
||
|
virtual AuSPtr<Stat> GetStats() override;
|
||
|
};
|
||
|
|
||
|
struct OverlappedReadOperation :
|
||
|
virtual BaseOverlappedOperation,
|
||
|
IOverlappedReadOperation
|
||
|
{
|
||
|
AuMemoryViewWrite write;
|
||
|
AuByteBuffer buffer;
|
||
|
|
||
|
virtual AuSPtr<Aurora::Memory::ByteBuffer> GetByteBuffer() override;
|
||
|
virtual AuSPtr<Aurora::Memory::MemoryViewWrite> GetReadView() override;
|
||
|
};
|
||
|
|
||
|
AUKN_SYM bool OverlappedForceDelegatedIO(bool bForceIOWorkerThreads)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedCompress(const AuString &path, AuInt8 iLevel)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedDecompress(const AuString &path)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedWrite(const AuString &path, AuSPtr<Aurora::Memory::MemoryViewRead> pMemoryView)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedReadOperation> OverlappedRead(const AuString &path)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedStatOperation> OverlappedStat(const AuString &path)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedCopy(const AuString &path, const AuString &dest)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedRelink(const AuString &path, const AuString &dest)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedTrustFile(const AuString &path)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedBlockFile(const AuString &path)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedUnblockFile(const AuString &path)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
AUKN_SYM AuSPtr<IOverlappedOperationBase> OverlappedDelete(const AuString &path)
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
}
|