ONE - On-device Neural Engine
|
Data Structures | |
class | Blob |
class | FixedTypedVector |
class | FLATBUFFERS_FINAL_CLASS |
class | Map |
class | Object |
class | Reference |
class | Sized |
class | String |
class | TypedVector |
class | Vector |
Typedefs | |
typedef int16_t | half |
typedef int8_t | quarter |
Enumerations | |
enum | BitWidth { BIT_WIDTH_8 = 0 , BIT_WIDTH_16 = 1 , BIT_WIDTH_32 = 2 , BIT_WIDTH_64 = 3 } |
enum | Type { FBT_NULL = 0 , FBT_INT = 1 , FBT_UINT = 2 , FBT_FLOAT = 3 , FBT_KEY = 4 , FBT_STRING = 5 , FBT_INDIRECT_INT = 6 , FBT_INDIRECT_UINT = 7 , FBT_INDIRECT_FLOAT = 8 , FBT_MAP = 9 , FBT_VECTOR = 10 , FBT_VECTOR_INT = 11 , FBT_VECTOR_UINT = 12 , FBT_VECTOR_FLOAT = 13 , FBT_VECTOR_KEY = 14 , FBT_VECTOR_STRING_DEPRECATED = 15 , FBT_VECTOR_INT2 = 16 , FBT_VECTOR_UINT2 = 17 , FBT_VECTOR_FLOAT2 = 18 , FBT_VECTOR_INT3 = 19 , FBT_VECTOR_UINT3 = 20 , FBT_VECTOR_FLOAT3 = 21 , FBT_VECTOR_INT4 = 22 , FBT_VECTOR_UINT4 = 23 , FBT_VECTOR_FLOAT4 = 24 , FBT_BLOB = 25 , FBT_BOOL = 26 , FBT_VECTOR_BOOL = 36 } |
enum | BuilderFlag { BUILDER_FLAG_NONE = 0 , BUILDER_FLAG_SHARE_KEYS = 1 , BUILDER_FLAG_SHARE_STRINGS = 2 , BUILDER_FLAG_SHARE_KEYS_AND_STRINGS = 3 , BUILDER_FLAG_SHARE_KEY_VECTORS = 4 , BUILDER_FLAG_SHARE_ALL = 7 } |
Functions | |
bool | IsInline (Type t) |
bool | IsTypedVectorElementType (Type t) |
bool | IsTypedVector (Type t) |
bool | IsFixedTypedVector (Type t) |
Type | ToTypedVector (Type t, size_t fixed_len=0) |
Type | ToTypedVectorElementType (Type t) |
Type | ToFixedTypedVectorElementType (Type t, uint8_t *len) |
template<typename R , typename T1 , typename T2 , typename T4 , typename T8 > | |
R | ReadSizedScalar (const uint8_t *data, uint8_t byte_width) |
int64_t | ReadInt64 (const uint8_t *data, uint8_t byte_width) |
uint64_t | ReadUInt64 (const uint8_t *data, uint8_t byte_width) |
double | ReadDouble (const uint8_t *data, uint8_t byte_width) |
const uint8_t * | Indirect (const uint8_t *offset, uint8_t byte_width) |
template<typename T > | |
const uint8_t * | Indirect (const uint8_t *offset) |
BitWidth | WidthU (uint64_t u) |
BitWidth | WidthI (int64_t i) |
BitWidth | WidthF (double f) |
template<typename T > | |
void | AppendToString (std::string &s, T &&v, bool keys_quoted) |
template<> | |
std::string | Reference::As< std::string > () const |
uint8_t | PackedType (BitWidth bit_width, Type type) |
uint8_t | NullPackedType () |
template<typename T > | |
int | KeyCompare (const void *key, const void *elem) |
Reference | GetRoot (const uint8_t *buffer, size_t size) |
Reference | GetRoot (const std::vector< uint8_t > &buffer) |
typedef int16_t flexbuffers::half |
Definition at line 138 of file flexbuffers.h.
typedef int8_t flexbuffers::quarter |
Definition at line 139 of file flexbuffers.h.
Enumerator | |
---|---|
BIT_WIDTH_8 | |
BIT_WIDTH_16 | |
BIT_WIDTH_32 | |
BIT_WIDTH_64 |
Definition at line 44 of file flexbuffers.h.
Enumerator | |
---|---|
BUILDER_FLAG_NONE | |
BUILDER_FLAG_SHARE_KEYS | |
BUILDER_FLAG_SHARE_STRINGS | |
BUILDER_FLAG_SHARE_KEYS_AND_STRINGS | |
BUILDER_FLAG_SHARE_KEY_VECTORS | |
BUILDER_FLAG_SHARE_ALL |
Definition at line 1033 of file flexbuffers.h.
enum flexbuffers::Type |
Definition at line 54 of file flexbuffers.h.
void flexbuffers::AppendToString | ( | std::string & | s, |
T && | v, | ||
bool | keys_quoted | ||
) |
Definition at line 377 of file flexbuffers.h.
|
inline |
Definition at line 1018 of file flexbuffers.h.
References GetRoot(), and flatbuffers::vector_data().
|
inline |
Definition at line 1007 of file flexbuffers.h.
References size.
Referenced by GetRoot(), circledump::CustomOpPrinter::options(), and tfldump::CustomOpPrinter::options().
const uint8_t * flexbuffers::Indirect | ( | const uint8_t * | offset | ) |
|
inline |
Definition at line 177 of file flexbuffers.h.
References offset(), and ReadUInt64().
Referenced by flexbuffers::Map::Keys().
|
inline |
Definition at line 101 of file flexbuffers.h.
References FBT_VECTOR_FLOAT4, and FBT_VECTOR_INT2.
Referenced by flexbuffers::Reference::IsFixedTypedVector(), and ToFixedTypedVectorElementType().
|
inline |
Definition at line 89 of file flexbuffers.h.
References FBT_BOOL, and FBT_FLOAT.
Referenced by flexbuffers::FLATBUFFERS_FINAL_CLASS::Value::ElemWidth(), and flexbuffers::FLATBUFFERS_FINAL_CLASS::Value::StoredWidth().
|
inline |
Definition at line 96 of file flexbuffers.h.
References FBT_VECTOR_BOOL, FBT_VECTOR_INT, and FBT_VECTOR_STRING_DEPRECATED.
Referenced by flexbuffers::Reference::IsTypedVector(), and ToTypedVectorElementType().
|
inline |
Definition at line 91 of file flexbuffers.h.
References FBT_BOOL, FBT_INT, and FBT_STRING.
Referenced by ToTypedVector().
int flexbuffers::KeyCompare | ( | const void * | key, |
const void * | elem | ||
) |
Definition at line 969 of file flexbuffers.h.
|
inline |
Definition at line 933 of file flexbuffers.h.
References BIT_WIDTH_8, FBT_NULL, and PackedType().
Referenced by flexbuffers::Map::operator[](), flexbuffers::Vector::operator[](), flexbuffers::TypedVector::operator[](), and flexbuffers::FixedTypedVector::operator[]().
Definition at line 928 of file flexbuffers.h.
Referenced by NullPackedType(), and flexbuffers::FLATBUFFERS_FINAL_CLASS::Value::StoredPackedType().
|
inline |
Definition at line 172 of file flexbuffers.h.
Referenced by flexbuffers::Reference::AsDouble(), flexbuffers::Reference::AsInt64(), and flexbuffers::Reference::AsUInt64().
|
inline |
Definition at line 155 of file flexbuffers.h.
Referenced by flexbuffers::Reference::AsDouble(), flexbuffers::Reference::AsInt64(), and flexbuffers::Reference::AsUInt64().
R flexbuffers::ReadSizedScalar | ( | const uint8_t * | data, |
uint8_t | byte_width | ||
) |
Definition at line 147 of file flexbuffers.h.
|
inline |
Definition at line 160 of file flexbuffers.h.
Referenced by flexbuffers::Reference::AsBool(), flexbuffers::Reference::AsDouble(), flexbuffers::Reference::AsInt64(), flexbuffers::Reference::AsUInt64(), Indirect(), flexbuffers::Map::Keys(), and flexbuffers::Sized::read_size().
|
inline |
Definition at line 917 of file flexbuffers.h.
Definition at line 128 of file flexbuffers.h.
References FBT_INT, FBT_VECTOR_INT2, FLATBUFFERS_ASSERT, and IsFixedTypedVector().
Referenced by flexbuffers::Reference::AsFixedTypedVector().
Definition at line 103 of file flexbuffers.h.
References FBT_INT, FBT_NULL, FBT_VECTOR_INT, FBT_VECTOR_INT2, FBT_VECTOR_INT3, FBT_VECTOR_INT4, FLATBUFFERS_ASSERT, and IsTypedVectorElementType().
Definition at line 122 of file flexbuffers.h.
References FBT_INT, FBT_VECTOR_INT, FLATBUFFERS_ASSERT, and IsTypedVector().
Referenced by flexbuffers::Reference::AsTypedVector().
|
inline |
Definition at line 207 of file flexbuffers.h.
References BIT_WIDTH_32, and BIT_WIDTH_64.
Referenced by flexbuffers::FLATBUFFERS_FINAL_CLASS::IndirectDouble(), flexbuffers::Reference::MutateFloat(), and flexbuffers::FLATBUFFERS_FINAL_CLASS::Value::Value().
|
inline |
Definition at line 201 of file flexbuffers.h.
References WidthU().
Referenced by flexbuffers::FLATBUFFERS_FINAL_CLASS::IndirectInt(), flexbuffers::FLATBUFFERS_FINAL_CLASS::Int(), flexbuffers::Reference::MutateInt(), and flexbuffers::Reference::MutateUInt().
|
inline |
Definition at line 187 of file flexbuffers.h.
References BIT_WIDTH_64, and FLATBUFFERS_GET_FIELD_BIT_WIDTH.
Referenced by flexbuffers::FLATBUFFERS_FINAL_CLASS::Value::ElemWidth(), flexbuffers::FLATBUFFERS_FINAL_CLASS::IndirectUInt(), flexbuffers::Reference::MutateInt(), flexbuffers::Reference::MutateUInt(), flexbuffers::FLATBUFFERS_FINAL_CLASS::UInt(), and WidthI().