Crate flatbuffers_reflection

Source

Modules§

reflection

Structs§

SafeBuffer
Struct

Enums§

FlatbufferError

Functions§

get_any_field_float
Returns the value of any table field as a 64-bit floating point, regardless of what type it is. Returns default float if the field is not set or error if the value cannot be parsed as float.
get_any_field_float_in_struct
Returns the value of any struct field as a 64-bit floating point, regardless of what type it is. Returns error if the value cannot be parsed as float.
get_any_field_integer
Returns the value of any table field as a 64-bit int, regardless of what type it is. Returns default integer if the field is not set or error if the value cannot be parsed as integer. num_traits is used for number casting.
get_any_field_integer_in_struct
Returns the value of any struct field as a 64-bit int, regardless of what type it is. Returns error if the value cannot be parsed as integer.
get_any_field_string
Returns the value of any table field as a string, regardless of what type it is. Returns empty string if the field is not set.
get_any_field_string_in_struct
Returns the value of any struct field as a string, regardless of what type it is.
get_any_root
Gets the root table from a trusted Flatbuffer.
get_field_float
Gets a floating point table field given its exact type. Returns default float value if the field is not set. Returns None if no default value is found. Returns error if the type doesn’t match.
get_field_integer
Gets an integer table field given its exact type. Returns default integer value if the field is not set. Returns None if no default value is found. Returns error if the type size doesn’t match.
get_field_string
Gets a String table field given its exact type. Returns empty string if the field is not set. Returns None if no default value is found. Returns error if the type size doesn’t match.
get_field_struct
Gets a Struct table field given its exact type. Returns None if the field is not set. Returns error if the type doesn’t match.
get_field_struct_in_struct
Gets a Struct struct field given its exact type. Returns error if the type doesn’t match.
get_field_table
Gets a Table table field given its exact type. Returns None if the field is not set. Returns error if the type doesn’t match.
get_field_vector
Gets a Vector table field given its exact type. Returns empty vector if the field is not set. Returns error if the type doesn’t match.
set_any_field_float
Sets any table field with the value of a 64-bit floating point. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be cast into the field type.
set_any_field_integer
Sets any table field with the value of a 64-bit integer. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be cast into the field type.
set_any_field_string
Sets any table field with the value of a string. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be parsed as the field type.
set_field
Sets any scalar field given its exact type. Returns error if the field is not originally set or is with non-scalar value.
set_string
Sets a string field to a new value. Returns error if the field is not originally set or is not of string type in which cases the [buf] stays intact. Returns error if the [buf] fails to be updated.

Type Aliases§

FlatbufferResult