mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
committed by
Wouter van Oortmerssen
parent
1beed12e59
commit
9c25ecdcd1
@@ -218,6 +218,7 @@ class String : public Sized {
|
||||
|
||||
size_t length() const { return size(); }
|
||||
const char *c_str() const { return reinterpret_cast<const char *>(data_); }
|
||||
std::string str() const { return std::string(c_str(), length()); }
|
||||
|
||||
static String EmptyString() {
|
||||
static const uint8_t empty_string[] = { 0/*len*/, 0/*terminator*/ };
|
||||
|
||||
Reference in New Issue
Block a user