Overhaul of tangible/blueprint animation interface
This commit is contained in:
@@ -7,6 +7,19 @@ FlxStringDecoder::FlxStringDecoder(std::string_view s) {
|
||||
ErrStringTooLong = false;
|
||||
}
|
||||
|
||||
void FlxStringDecoder::Reset(std::string_view s, bool clear) {
|
||||
Text = s.data();
|
||||
Size = s.size();
|
||||
if (clear) {
|
||||
ErrBeyondEOF = false;
|
||||
ErrStringTooLong = false;
|
||||
}
|
||||
}
|
||||
|
||||
std::string_view FlxStringDecoder::GetRest() {
|
||||
return std::string_view(Text, Size);
|
||||
}
|
||||
|
||||
std::string_view FlxStringDecoder::read_string_view() {
|
||||
size_t length = read_length();
|
||||
if (length > Size) {
|
||||
@@ -22,5 +35,4 @@ std::string_view FlxStringDecoder::read_string_view() {
|
||||
void FlxStringDecoder::set_at_eof() {
|
||||
Text += Size;
|
||||
Size = 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user