mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
19 lines
383 B
C++
19 lines
383 B
C++
#ifndef COMMON_STRING_RC_STRING_HPP
|
|
#define COMMON_STRING_RC_STRING_HPP
|
|
|
|
#include "common/ref/TRefCnt.hpp"
|
|
#include <cstdlib>
|
|
|
|
class RCString : public TRefCnt {
|
|
public:
|
|
// Member variables
|
|
char* m_str;
|
|
|
|
// Member functions
|
|
RCString();
|
|
void Copy(const char* source);
|
|
void Get(char* buf, size_t bufSize) const;
|
|
const char* GetString() const;
|
|
};
|
|
|
|
#endif
|