34 virtual ErrorCode DoRead(
void* a_buffer, std::uint64_t a_toRead, std::uint64_t& a_read)
const = 0;
35 virtual ErrorCode DoWrite(
const void* a_buffer, std::uint64_t a_toWrite, std::uint64_t& a_written)
const = 0;
41 static_assert(
sizeof(
Stream) == 0x10);
Definition: StreamBase.h:13
virtual ErrorCode DoCreateAsync(BSTSmartPointer< AsyncStream > &a_streamOut) const
Stream(std::uint32_t a_totalSize)
Stream(const Stream &a_rhs)
virtual ErrorCode DoSeek(std::uint64_t a_toSeek, SeekMode a_mode, std::uint64_t &a_sought) const =0
virtual void DoClone(BSTSmartPointer< Stream > &a_out) const =0
static constexpr auto VTABLE
Definition: Stream.h:24
static constexpr auto RTTI
Definition: Stream.h:23
virtual bool DoGetName(BSFixedString &a_dst) const
virtual ErrorCode DoRead(void *a_buffer, std::uint64_t a_toRead, std::uint64_t &a_read) const =0
~Stream() override=default
virtual ErrorCode DoWrite(const void *a_buffer, std::uint64_t a_toWrite, std::uint64_t &a_written) const =0
virtual ErrorCode DoSetEndOfStream()
Definition: BSTSmartPointer.h:37
ErrorCode
Definition: ErrorCodes.h:8
SeekMode
Definition: Stream.h:14
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_BSResource__Stream
Definition: Offsets_VTABLE.h:9407
constexpr REL::ID RTTI_BSResource__Stream(static_cast< std::uint64_t >(690344))