ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::String Struct Reference

#include <flatbuffers.h>

Collaboration diagram for flatbuffers::String:

Public Member Functions

const char * c_str () const
 
std::string str () const
 
bool operator< (const String &o) const
 
- Public Member Functions inherited from flatbuffers::Vector< char >
uoffset_t size () const
 
 FLATBUFFERS_ATTRIBUTE (deprecated("use size() instead")) uoffset_t Length() const
 
return_type Get (uoffset_t i) const
 
return_type operator[] (uoffset_t i) const
 
GetEnum (uoffset_t i) const
 
const U * GetAs (uoffset_t i) const
 
const StringGetAsString (uoffset_t i) const
 
const void * GetStructFromOffset (size_t o) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
void Mutate (uoffset_t i, const char &val)
 
void MutateOffset (uoffset_t i, const uint8_t *val)
 
mutable_return_type GetMutableObject (uoffset_t i) const
 
const uint8_t * Data () const
 
uint8_t * Data ()
 
const char * data () const
 
char * data ()
 
return_type LookupByKey (K key) const
 

Additional Inherited Members

- Public Types inherited from flatbuffers::Vector< char >
typedef VectorIterator< char, typename IndirectHelper< char >::mutable_return_type > iterator
 
typedef VectorIterator< char, typename IndirectHelper< char >::return_type > const_iterator
 
typedef VectorReverseIterator< iteratorreverse_iterator
 
typedef VectorReverseIterator< const_iteratorconst_reverse_iterator
 
typedef IndirectHelper< char >::return_type return_type
 
typedef IndirectHelper< char >::mutable_return_type mutable_return_type
 
typedef return_type value_type
 
- Protected Member Functions inherited from flatbuffers::Vector< char >
 Vector ()
 
- Protected Attributes inherited from flatbuffers::Vector< char >
uoffset_t length_
 

Detailed Description

Definition at line 642 of file flatbuffers.h.

Member Function Documentation

◆ c_str()

const char * flatbuffers::String::c_str ( ) const
inline

Definition at line 644 of file flatbuffers.h.

644{ return reinterpret_cast<const char *>(Data()); }
const uint8_t * Data() const

References flatbuffers::Vector< char >::Data().

Referenced by str().

◆ operator<()

bool flatbuffers::String::operator< ( const String o) const
inline

Definition at line 652 of file flatbuffers.h.

653 {
654 return StringLessThan(this->data(), this->size(), o.data(), o.size());
655 }
const char * data() const

References flatbuffers::Vector< T >::data(), flatbuffers::Vector< char >::data(), flatbuffers::Vector< T >::size(), and flatbuffers::Vector< char >::size().

◆ str()

std::string flatbuffers::String::str ( ) const
inline

Definition at line 645 of file flatbuffers.h.

645{ return std::string(c_str(), size()); }
const char * c_str() const

References c_str(), and flatbuffers::Vector< char >::size().

Referenced by luci::fb_string2std_string().


The documentation for this struct was generated from the following file: