|
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 , FBT_MAX_TYPE = 37 } |
| 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 | VerifyNestedFlexBuffer (const flatbuffers::Vector< uint8_t > *const nested, flatbuffers::Verifier &verifier) |
| 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) |
| bool | VerifyBuffer (const uint8_t *buf, size_t buf_len, std::vector< uint8_t > *reuse_tracker=nullptr) |
| typedef int16_t flexbuffers::half |
Definition at line 130 of file flexbuffers.h.
| typedef int8_t flexbuffers::quarter |
Definition at line 131 of file flexbuffers.h.
| Enumerator | |
|---|---|
| BIT_WIDTH_8 | |
| BIT_WIDTH_16 | |
| BIT_WIDTH_32 | |
| BIT_WIDTH_64 | |
Definition at line 43 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 909 of file flexbuffers.h.
| enum flexbuffers::Type |
Definition at line 52 of file flexbuffers.h.
| void flexbuffers::AppendToString | ( | std::string & | s, |
| T && | v, | ||
| bool | keys_quoted | ||
| ) |
Definition at line 364 of file flexbuffers.h.
|
inline |
Definition at line 895 of file flexbuffers.h.
References GetRoot().
|
inline |
Definition at line 885 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 180 of file flexbuffers.h.
References offset(), and ReadUInt64().
Referenced by flexbuffers::Map::Keys().
|
inline |
Definition at line 100 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 95 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 856 of file flexbuffers.h.
|
inline |
Definition at line 826 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 822 of file flexbuffers.h.
References type.
Referenced by NullPackedType(), flexbuffers::FLATBUFFERS_FINAL_CLASS::Value::StoredPackedType(), and flexbuffers::FLATBUFFERS_FINAL_CLASS::Verifier().
|
inline |
Definition at line 175 of file flexbuffers.h.
Referenced by flexbuffers::Reference::AsDouble(), flexbuffers::Reference::AsInt64(), and flexbuffers::Reference::AsUInt64().
|
inline |
Definition at line 149 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 139 of file flexbuffers.h.
|
inline |
Definition at line 154 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 808 of file flexbuffers.h.
Definition at line 120 of file flexbuffers.h.
References FBT_INT, FBT_VECTOR_INT2, FLATBUFFERS_ASSERT, and IsFixedTypedVector().
Referenced by flexbuffers::Reference::AsFixedTypedVector().
Definition at line 104 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 115 of file flexbuffers.h.
References FBT_INT, FBT_VECTOR_INT, FLATBUFFERS_ASSERT, and IsTypedVector().
Referenced by flexbuffers::Reference::AsTypedVector().
|
inline |
Definition at line 1875 of file flexbuffers.h.
Referenced by VerifyNestedFlexBuffer().
|
inline |
Definition at line 26 of file flex_flat_util.h.
References flatbuffers::Vector< T, SizeT >::data(), flatbuffers::Vector< T, SizeT >::size(), and VerifyBuffer().
|
inline |
Definition at line 205 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 200 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 188 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().