CommonLibSSE (powerof3)
hkStringPtr.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
5  class hkStringPtr
6  {
7  public:
8  // member types
9  using size_type = std::int32_t;
10 
11  // members access
12  [[nodiscard]] const char* data() const noexcept;
13  [[nodiscard]] const char* c_str() const noexcept;
14 
15  // capacity
16  [[nodiscard]] bool empty() const noexcept;
17  [[nodiscard]] size_type size() const;
18  [[nodiscard]] size_type length() const;
19 
20  protected:
21  enum
22  {
23  kManaged = 1 << 0
24  };
25 
26  const char* _data; // 0
27  };
28  static_assert(sizeof(hkStringPtr) == 0x8);
29 }
Definition: hkStringPtr.h:6
bool empty() const noexcept
std::int32_t size_type
Definition: hkStringPtr.h:9
const char * _data
Definition: hkStringPtr.h:26
const char * c_str() const noexcept
size_type length() const
size_type size() const
const char * data() const noexcept
@ kManaged
Definition: hkStringPtr.h:23
Definition: AbsorbEffect.h:6