CommonLibVR
LoadStorageWrapper.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSMemStorage.h"
4 
5 namespace RE
6 {
8  {
9  public:
10  inline static auto RTTI = RTTI_LoadStorageWrapper;
11  inline static auto VTABLE = VTABLE_LoadStorageWrapper;
12 
13  ~LoadStorageWrapper() override; // 00
14 
15  // override BSMemStorage
16  std::size_t GetSize() const override; // 01
17  std::size_t GetPosition() const override; // 02
18  BSStorageDefs::ErrorCode Seek(std::size_t a_offset, BSStorageDefs::SeekMode a_seekMode) const override; // 03
19  BSStorageDefs::ErrorCode Read(std::size_t a_numBytes, std::byte* a_bytes) const override; // 04
20  BSStorageDefs::ErrorCode Write(std::size_t a_numBytes, const std::byte* a_bytes) override; // 05
21  private:
22  KEEP_FOR_RE()
23  };
24  static_assert(sizeof(LoadStorageWrapper) == 0x30);
25 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BSMemStorage.h:10
Definition: LoadStorageWrapper.h:8
std::size_t GetSize() const override
std::size_t GetPosition() const override
static auto VTABLE
Definition: LoadStorageWrapper.h:11
BSStorageDefs::ErrorCode Write(std::size_t a_numBytes, const std::byte *a_bytes) override
BSStorageDefs::ErrorCode Seek(std::size_t a_offset, BSStorageDefs::SeekMode a_seekMode) const override
static auto RTTI
Definition: LoadStorageWrapper.h:10
BSStorageDefs::ErrorCode Read(std::size_t a_numBytes, std::byte *a_bytes) const override
~LoadStorageWrapper() override
ErrorCode
Definition: ErrorCodes.h:8
SeekMode
Definition: Stream.h:14
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_LoadStorageWrapper
Definition: Offsets_VTABLE.h:11960
constexpr REL::ID RTTI_LoadStorageWrapper(static_cast< std::uint64_t >(686621))