mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 04:00:53 +01:00
20 lines
279 B
C
20 lines
279 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
struct BSString
|
||
|
|
{
|
||
|
|
BSString()
|
||
|
|
: data{nullptr}
|
||
|
|
, length{0}
|
||
|
|
, capacity{0}
|
||
|
|
{
|
||
|
|
}
|
||
|
|
~BSString();
|
||
|
|
|
||
|
|
[[nodiscard]] const char* AsAscii() { return data; }
|
||
|
|
|
||
|
|
private:
|
||
|
|
const char* data;
|
||
|
|
uint16_t length;
|
||
|
|
uint16_t capacity;
|
||
|
|
};
|