Home
last modified time | relevance | path

Searched refs:FlexBufferType (Results 1 – 15 of 15) sorted by relevance

/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
DFlexBuffersInternals.kt26 public inline class FlexBufferType(public val value: Int) { in max() class
27 …public operator fun minus(other: FlexBufferType): FlexBufferType = FlexBufferType(this.value - oth… in max()
28 …public operator fun plus(other: FlexBufferType): FlexBufferType = FlexBufferType(this.value + othe… in max()
29 public operator fun compareTo(other: FlexBufferType): Int = this.value - other.value in max()
35 internal operator fun Int.minus(type: FlexBufferType): Int = this - type.value in times()
96 internal inline fun FlexBufferType.isInline(): Boolean = this.value <= T_FLOAT.value || this == T_B… in paddingBytes()
98 internal fun FlexBufferType.isScalar(): Boolean = when (this) { in paddingBytes()
103 internal fun FlexBufferType.isIndirectScalar(): Boolean = when (this) { in isIndirectScalar()
108 internal fun FlexBufferType.isTypedVector(): Boolean = in isTypedVector()
111 internal fun FlexBufferType.isTypedVectorElementType(): Boolean = (this.value in T_INT.value..T_KEY… in isTypedVector()
[all …]
DJSON.kt144 private fun parseValue(data: ReadBuffer, token: Token, key: String? = null): FlexBufferType { in parseValue()
157 private fun parseObject(data: ReadBuffer, key: String? = null): FlexBufferType { in parseObject()
178 private fun parseArray(data: ReadBuffer, key: String? = null): FlexBufferType { in parseArray()
212 private fun parseNumber(data: ReadBuffer, array: ByteArray, key: String?): FlexBufferType { in parseNumber()
333 private fun parseString(data: ReadBuffer, key: String?): FlexBufferType { in parseString()
DFlexBuffersBuilder.kt453 vecType: FlexBufferType, in setTypedVector()
538 …private inline fun writeBlob(key: Int, blob: ByteArray, type: FlexBufferType, trailing: Boolean): … in writeBlob()
679 val elementType: FlexBufferType = stack[start].type in createTypedVector()
691 type: FlexBufferType, in createAnyVector()
DFlexBuffers.kt46 internal val type: FlexBufferType
50 …this(bb, end, parentWidth, ByteWidth(1 shl (packedType and 3)), FlexBufferType((packedType shr 2)))
610 private val elementType: FlexBufferType,
/third_party/flatbuffers/rust/flexbuffers/src/reader/
Dmod.rs16 use crate::flexbuffer_type::FlexBufferType;
44 expected: FlexBufferType,
45 actual: FlexBufferType,
105 const VECTOR_TYPE: FlexBufferType;
111 const VECTOR_TYPE: FlexBufferType = FlexBufferType::$VECTOR_TYPE;
147 fxb_type: FlexBufferType,
167 fxb_type: FlexBufferType::default(), in default()
209 mut fxb_type: FlexBufferType, in new() argument
251 pub fn flexbuffer_type(&self) -> FlexBufferType { in flexbuffer_type() argument
282 fn expect_type(&self, ty: FlexBufferType) -> Result<(), Error> { in expect_type()
[all …]
Dde.rs16 use crate::{FlexBufferType, Reader, ReaderIterator};
174 use crate::FlexBufferType::*; in deserialize_any()
226 if self.flexbuffer_type() == FlexBufferType::Null { in deserialize_option()
254 FlexBufferType::String => (self.as_str(), None), in deserialize_enum()
255 FlexBufferType::Map => { in deserialize_enum()
263 expected: FlexBufferType::Map, in deserialize_enum()
Dvector.rs16 use crate::{BitWidth, Buffer, FlexBufferType};
57 fn get_elem_type(&self, i: usize) -> Result<(FlexBufferType, BitWidth), Error> { in get_elem_type() argument
Dmap.rs147 fxb_type: crate::FlexBufferType::Map, in iter_values()
167 fxb_type: crate::FlexBufferType::VectorKey, in keys_vector()
/third_party/flatbuffers/rust/flexbuffers/src/
Dflexbuffer_type.rs40 pub enum FlexBufferType { enum
105 use FlexBufferType::*;
107 impl Default for FlexBufferType { implementation
122 impl FlexBufferType { impl
149 pub fn typed_vector_type(self) -> Option<FlexBufferType> { in typed_vector_type() argument
Dlib.rs54 pub use flexbuffer_type::FlexBufferType;
/third_party/flatbuffers/rust/flexbuffers/src/builder/
Dvalue.rs19 use crate::flexbuffer_type::FlexBufferType;
20 use crate::flexbuffer_type::FlexBufferType::*;
38 fxb_type: FlexBufferType,
111 pub fn fxb_type(&self) -> FlexBufferType { in fxb_type() argument
156 pub fn set_fxb_type_or_panic(&mut self, new_type: FlexBufferType) { in set_fxb_type_or_panic() argument
Dmod.rs17 use crate::FlexBufferType;
72 fxb_type: FlexBufferType::$Indirect,
222 fxb_type: FlexBufferType::Blob, in store_blob()
230 string.set_fxb_type_or_panic(FlexBufferType::String); in push_str()
248 fxb_type: FlexBufferType::VectorBool, in push_bools()
373 FlexBufferType::VectorString, in store_vector()
/third_party/flatbuffers/tests/rust_usage_test/tests/flexbuffers_tests/
Dother_api.rs152 assert_eq!(n.as_vector().idx(1).flexbuffer_type(), FlexBufferType::Null); in null_reader()
153 assert_eq!(n.as_map().idx("1").flexbuffer_type(), FlexBufferType::Null); in null_reader()
159 (FlexBufferType::Vector as u8) << 2 | BitWidth::W8 as u8, in get_root_deref_oob()
169 (FlexBufferType::IndirectUInt as u8) << 2 | BitWidth::W64 as u8, in get_root_deref_u64()
Dinterop.rs29 assert_eq!(vec.idx(4).flexbuffer_type(), FlexBufferType::Bool); in read_golden_flexbuffer()
Drwyw.rs447 assert_eq!(reader.flexbuffer_type(), FlexBufferType::Blob); in serialize_serde_with_bytes_as_blob()