/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/ |
D | FlexBuffersInternals.kt | 26 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 …]
|
D | JSON.kt | 144 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()
|
D | FlexBuffersBuilder.kt | 453 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()
|
D | FlexBuffers.kt | 46 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/ |
D | mod.rs | 16 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 …]
|
D | de.rs | 16 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()
|
D | vector.rs | 16 use crate::{BitWidth, Buffer, FlexBufferType}; 57 fn get_elem_type(&self, i: usize) -> Result<(FlexBufferType, BitWidth), Error> { in get_elem_type() argument
|
D | map.rs | 147 fxb_type: crate::FlexBufferType::Map, in iter_values() 167 fxb_type: crate::FlexBufferType::VectorKey, in keys_vector()
|
/third_party/flatbuffers/rust/flexbuffers/src/ |
D | flexbuffer_type.rs | 40 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
|
D | lib.rs | 54 pub use flexbuffer_type::FlexBufferType;
|
/third_party/flatbuffers/rust/flexbuffers/src/builder/ |
D | value.rs | 19 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
|
D | mod.rs | 17 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/ |
D | other_api.rs | 152 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()
|
D | interop.rs | 29 assert_eq!(vec.idx(4).flexbuffer_type(), FlexBufferType::Bool); in read_golden_flexbuffer()
|
D | rwyw.rs | 447 assert_eq!(reader.flexbuffer_type(), FlexBufferType::Blob); in serialize_serde_with_bytes_as_blob()
|