ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flexbuffers.h File Reference
#include <map>
#include "flatbuffers/base.h"
#include "flatbuffers/util.h"

Go to the source code of this file.

Data Structures

class  flexbuffers::Object
 
class  flexbuffers::Sized
 
class  flexbuffers::String
 
class  flexbuffers::Blob
 
class  flexbuffers::Vector
 
class  flexbuffers::TypedVector
 
class  flexbuffers::FixedTypedVector
 
class  flexbuffers::Map
 
class  flexbuffers::Reference
 
class  flexbuffers::FLATBUFFERS_FINAL_CLASS
 
struct  flexbuffers::FLATBUFFERS_FINAL_CLASS::Value
 

Namespaces

namespace  flexbuffers
 

Macros

#define FLATBUFFERS_GET_FIELD_BIT_WIDTH(value, width)
 

Typedefs

typedef int16_t flexbuffers::half
 
typedef int8_t flexbuffers::quarter
 

Enumerations

enum  flexbuffers::BitWidth { flexbuffers::BIT_WIDTH_8 = 0 , flexbuffers::BIT_WIDTH_16 = 1 , flexbuffers::BIT_WIDTH_32 = 2 , flexbuffers::BIT_WIDTH_64 = 3 }
 
enum  flexbuffers::Type {
  flexbuffers::FBT_NULL = 0 , flexbuffers::FBT_INT = 1 , flexbuffers::FBT_UINT = 2 , flexbuffers::FBT_FLOAT = 3 ,
  flexbuffers::FBT_KEY = 4 , flexbuffers::FBT_STRING = 5 , flexbuffers::FBT_INDIRECT_INT = 6 , flexbuffers::FBT_INDIRECT_UINT = 7 ,
  flexbuffers::FBT_INDIRECT_FLOAT = 8 , flexbuffers::FBT_MAP = 9 , flexbuffers::FBT_VECTOR = 10 , flexbuffers::FBT_VECTOR_INT = 11 ,
  flexbuffers::FBT_VECTOR_UINT = 12 , flexbuffers::FBT_VECTOR_FLOAT = 13 , flexbuffers::FBT_VECTOR_KEY = 14 , flexbuffers::FBT_VECTOR_STRING_DEPRECATED = 15 ,
  flexbuffers::FBT_VECTOR_INT2 = 16 , flexbuffers::FBT_VECTOR_UINT2 = 17 , flexbuffers::FBT_VECTOR_FLOAT2 = 18 , flexbuffers::FBT_VECTOR_INT3 = 19 ,
  flexbuffers::FBT_VECTOR_UINT3 = 20 , flexbuffers::FBT_VECTOR_FLOAT3 = 21 , flexbuffers::FBT_VECTOR_INT4 = 22 , flexbuffers::FBT_VECTOR_UINT4 = 23 ,
  flexbuffers::FBT_VECTOR_FLOAT4 = 24 , flexbuffers::FBT_BLOB = 25 , flexbuffers::FBT_BOOL = 26 , flexbuffers::FBT_VECTOR_BOOL = 36
}
 
enum  flexbuffers::BuilderFlag {
  flexbuffers::BUILDER_FLAG_NONE = 0 , flexbuffers::BUILDER_FLAG_SHARE_KEYS = 1 , flexbuffers::BUILDER_FLAG_SHARE_STRINGS = 2 , flexbuffers::BUILDER_FLAG_SHARE_KEYS_AND_STRINGS = 3 ,
  flexbuffers::BUILDER_FLAG_SHARE_KEY_VECTORS = 4 , flexbuffers::BUILDER_FLAG_SHARE_ALL = 7
}
 

Functions

bool flexbuffers::IsInline (Type t)
 
bool flexbuffers::IsTypedVectorElementType (Type t)
 
bool flexbuffers::IsTypedVector (Type t)
 
bool flexbuffers::IsFixedTypedVector (Type t)
 
Type flexbuffers::ToTypedVector (Type t, size_t fixed_len=0)
 
Type flexbuffers::ToTypedVectorElementType (Type t)
 
Type flexbuffers::ToFixedTypedVectorElementType (Type t, uint8_t *len)
 
template<typename R , typename T1 , typename T2 , typename T4 , typename T8 >
flexbuffers::ReadSizedScalar (const uint8_t *data, uint8_t byte_width)
 
int64_t flexbuffers::ReadInt64 (const uint8_t *data, uint8_t byte_width)
 
uint64_t flexbuffers::ReadUInt64 (const uint8_t *data, uint8_t byte_width)
 
double flexbuffers::ReadDouble (const uint8_t *data, uint8_t byte_width)
 
const uint8_t * flexbuffers::Indirect (const uint8_t *offset, uint8_t byte_width)
 
template<typename T >
const uint8_t * flexbuffers::Indirect (const uint8_t *offset)
 
BitWidth flexbuffers::WidthU (uint64_t u)
 
BitWidth flexbuffers::WidthI (int64_t i)
 
BitWidth flexbuffers::WidthF (double f)
 
template<typename T >
void flexbuffers::AppendToString (std::string &s, T &&v, bool keys_quoted)
 
template<>
std::string flexbuffers::Reference::As< std::string > () const
 
uint8_t flexbuffers::PackedType (BitWidth bit_width, Type type)
 
uint8_t flexbuffers::NullPackedType ()
 
template<typename T >
int flexbuffers::KeyCompare (const void *key, const void *elem)
 
Reference flexbuffers::GetRoot (const uint8_t *buffer, size_t size)
 
Reference flexbuffers::GetRoot (const std::vector< uint8_t > &buffer)
 

Macro Definition Documentation

◆ FLATBUFFERS_GET_FIELD_BIT_WIDTH

#define FLATBUFFERS_GET_FIELD_BIT_WIDTH (   value,
  width 
)
Value:
{ \
if (!((u) & ~((1ULL << (width)) - 1ULL))) \
return BIT_WIDTH_##width; \
}