/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
App/include/util/BinaryString.h
49 строк
912 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#pragma once #include <string> namespace RBX { // use this for properties that contain binary data so that they're serialized to XML without roundtrip issues class BinaryString { public: BinaryString() { } explicit BinaryString(const std::string& value) : internalValue(value) { } const std::string& value() const { return internalValue; } void set(const char* buffer, unsigned int size) { internalValue.assign(buffer, size); } bool operator==(const BinaryString& other) const { return internalValue == other.internalValue; } bool operator!=(const BinaryString& other) const { return internalValue != other.internalValue; } bool operator<(const BinaryString& other) const { return internalValue < other.internalValue; } private: std::string internalValue; }; }