CommonLibSSE NG
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 constexpr auto RTTI = RTTI_LoadStorageWrapper;
11  inline static constexpr 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  };
22  static_assert(sizeof(LoadStorageWrapper) == 0x30);
23 }
Definition: BSMemStorage.h:10
Definition: LoadStorageWrapper.h:8
static constexpr auto RTTI
Definition: LoadStorageWrapper.h:10
std::size_t GetSize() const override
std::size_t GetPosition() const override
BSStorageDefs::ErrorCode Write(std::size_t a_numBytes, const std::byte *a_bytes) override
static constexpr auto VTABLE
Definition: LoadStorageWrapper.h:11
BSStorageDefs::ErrorCode Seek(std::size_t a_offset, BSStorageDefs::SeekMode a_seekMode) const override
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::VariantID, 1 > VTABLE_LoadStorageWrapper
Definition: Offsets_VTABLE.h:1994
constexpr REL::VariantID RTTI_LoadStorageWrapper(686621, 394464, 0x1f02650)