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