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

#include <flatbuffers.h>

Collaboration diagram for flatbuffers::FlatBufferBuilder::StringOffsetCompare:

Public Member Functions

 StringOffsetCompare (const vector_downward &buf)
 
bool operator() (const Offset< String > &a, const Offset< String > &b) const
 

Data Fields

const vector_downwardbuf_
 

Detailed Description

Definition at line 2269 of file flatbuffers.h.

Constructor & Destructor Documentation

◆ StringOffsetCompare()

flatbuffers::FlatBufferBuilder::StringOffsetCompare::StringOffsetCompare ( const vector_downward buf)
inline

Definition at line 2271 of file flatbuffers.h.

2271: buf_(&buf) {}

Member Function Documentation

◆ operator()()

bool flatbuffers::FlatBufferBuilder::StringOffsetCompare::operator() ( const Offset< String > &  a,
const Offset< String > &  b 
) const
inline

Definition at line 2272 of file flatbuffers.h.

2273 {
2274 auto stra = reinterpret_cast<const String *>(buf_->data_at(a.o));
2275 auto strb = reinterpret_cast<const String *>(buf_->data_at(b.o));
2276 return StringLessThan(stra->data(), stra->size(), strb->data(), strb->size());
2277 }
uint8_t * data_at(size_t offset) const

References buf_, flatbuffers::vector_downward::data_at(), and flatbuffers::Offset< T >::o.

Field Documentation

◆ buf_

const vector_downward* flatbuffers::FlatBufferBuilder::StringOffsetCompare::buf_

Definition at line 2278 of file flatbuffers.h.

Referenced by operator()().


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