Home
last modified time | relevance | path

Searched refs:FlexBuffers (Results 1 – 13 of 13) sorted by relevance

/third_party/flatbuffers/tests/
DJavaTest.java13 import com.google.flatbuffers.FlexBuffers;
18 import com.google.flatbuffers.FlexBuffers.FlexBufferException;
19 import com.google.flatbuffers.FlexBuffers.Reference;
20 import com.google.flatbuffers.FlexBuffers.Vector;
22 import com.google.flatbuffers.FlexBuffers.KeyVector;
660 FlexBuffers.Map m = FlexBuffers.getRoot(builder.getBuffer()).asMap(); in testFlexBuffersTest()
666 TestEq(m.get("no_key").asMap(), FlexBuffers.Map.empty()); // empty if fail in testFlexBuffersTest()
667 TestEq(m.get("no_key").asKey(), FlexBuffers.Key.empty()); // empty if fail in testFlexBuffersTest()
668 TestEq(m.get("no_key").asVector(), FlexBuffers.Vector.empty()); // empty if fail in testFlexBuffersTest()
669 TestEq(m.get("no_key").asBlob(), FlexBuffers.Blob.empty()); // empty if fail in testFlexBuffersTest()
[all …]
/third_party/flatbuffers/docs/source/
DFlexBuffers.md1 FlexBuffers {#flexbuffers}
10 For this, FlatBuffers has a dedicated format, called FlexBuffers.
12 with FlatBuffers (by storing a part of a buffer in FlexBuffers
17 FlexBuffers can also be accessed without parsing / copying / object allocation.
21 FlexBuffers' design and implementation allows for a very compact encoding,
25 usually more bulky because of the need to be self-descriptive, FlexBuffers
28 FlexBuffers is still slower than regular FlatBuffers though, so we recommend to
60 FlexBuffers stores ints only as big as needed, so it doesn't differentiate
147 FlexBuffers.Map map = FlexBuffers.getRoot(bb).asMap();
149 FlexBuffers.Vector vec = map.get("vec").asVector();
[all …]
DInternals.md317 # FlexBuffers chapter
326 One difference is that FlexBuffers are built front to back, so children are
343 The representation of the vector is at the core of how FlexBuffers works (since
388 FlexBuffers supports integers (`TYPE_INT` and `TYPE_UINT`) and floats
DFlatBuffers.md186 - [FlexBuffers C#](https://github.com/mzaks/FlexBuffers-CSharp) and
DCompiler.md217 data using schema-less FlexBuffers.
Ddoxyfile769 "FlexBuffers.md" \
/third_party/flatbuffers/rust/flexbuffers/
DREADME.md4 schema-less binary format developed at Google. FlexBuffers can be accessed
9 FlexBuffers' design and implementation allows for a very compact encoding,
13 FlexBuffers supports [Serde](https://serde.rs/) for automatically serializing
DCargo.toml7 description = "Official FlexBuffers Rust runtime library."
/third_party/flatbuffers/java/com/google/flatbuffers/
DFlexBuffersBuilder.java28 import static com.google.flatbuffers.FlexBuffers.*;
29 import static com.google.flatbuffers.FlexBuffers.Unsigned.byteToUnsignedInt;
30 import static com.google.flatbuffers.FlexBuffers.Unsigned.intToUnsignedLong;
31 import static com.google.flatbuffers.FlexBuffers.Unsigned.shortToUnsignedInt;
523 if (!FlexBuffers.isTypedVectorElementType(vectorType)) { in createVector()
535 assert (!fixed || FlexBuffers.isTypedVectorElementType(vectorType)); in createVector()
558 : (typed ? FlexBuffers.toTypedVector(vectorType, fixed ? length : 0) in createVector()
644 return new Value(-1, FlexBuffers.toTypedVector(FBT_KEY,0), bitWidth, vloc); in createKeyVector()
737 if (FlexBuffers.isTypeInline(type)) { in storedWidth()
749 if (FlexBuffers.isTypeInline(type)) { in elemWidth()
DFlexBuffers.java20 import static com.google.flatbuffers.FlexBuffers.Unsigned.byteToUnsignedInt;
21 import static com.google.flatbuffers.FlexBuffers.Unsigned.intToUnsignedLong;
22 import static com.google.flatbuffers.FlexBuffers.Unsigned.shortToUnsignedInt;
45 public class FlexBuffers { class
338 return FlexBuffers.isTypedVector(type); in isTypedVector()
531 } else if(type == FlexBuffers.FBT_VECTOR_STRING_DEPRECATED) { in asVector()
533 … return new TypedVector(bb, indirect(bb, end, parentWidth), byteWidth, FlexBuffers.FBT_KEY); in asVector()
534 } else if (FlexBuffers.isTypedVector(type)) { in asVector()
535 …return new TypedVector(bb, indirect(bb, end, parentWidth), byteWidth, FlexBuffers.toTypedVectorEle… in asVector()
/third_party/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/
DFlexBuffersBenchmark.kt19 import com.google.flatbuffers.FlexBuffers
91 val ref = FlexBuffers.getRoot(jBuilder.finish()) in mapJava()
119 val root = FlexBuffers.getRoot(jBuilder.buffer) in intArrayJava()
145 val root = FlexBuffers.getRoot(jBuilder.buffer) in stringArrayJava()
190 val ref = FlexBuffers.getRoot(jBuilder.finish()) in stringMapJava()
/third_party/flatbuffers/dart/lib/src/
Dbuilder.dart166 …/// This is due to the fact that FlexBuffers will add padding to small integer values, if they are…
190 …/// Double are stored as 8 or 4 byte values in FlexBuffers. If they are stored in a mixed vector, …
Dreference.dart102 …/// This method performers a utf8 decoding, as FlexBuffers format stores strings in utf8 encoding.