allow length in CZString

This commit is contained in:
Christopher Dunn
2015-03-02 12:10:35 -06:00
parent b383fdc61e
commit 57ad051f67
2 changed files with 21 additions and 9 deletions

View File

@@ -176,8 +176,16 @@ private:
private:
void swap(CZString& other);
struct StringStorage {
DuplicationPolicy policy_: 2;
unsigned length_: 30; // 1GB max
};
const char* cstr_;
ArrayIndex index_;
union {
ArrayIndex index_;
StringStorage storage_;
};
};
public: