Lines Matching refs:slb
2751 flexbuffers::Builder slb(512, in FlexBuffersTest() local
2760 slb.Map([&]() { in FlexBuffersTest()
2761 slb.Vector("vec", [&]() { in FlexBuffersTest()
2762 slb += -100; // Equivalent to slb.Add(-100) or slb.Int(-100); in FlexBuffersTest()
2763 slb += "Fred"; in FlexBuffersTest()
2764 slb.IndirectFloat(4.0f); in FlexBuffersTest()
2765 auto i_f = slb.LastValue(); in FlexBuffersTest()
2767 slb.Blob(blob, 1); in FlexBuffersTest()
2768 slb += false; in FlexBuffersTest()
2769 slb.ReuseValue(i_f); in FlexBuffersTest()
2772 slb.Vector("bar", ints, 3); in FlexBuffersTest()
2773 slb.FixedTypedVector("bar3", ints, 3); in FlexBuffersTest()
2775 slb.Vector("bools", bools, 4); in FlexBuffersTest()
2776 slb.Bool("bool", true); in FlexBuffersTest()
2777 slb.Double("foo", 100); in FlexBuffersTest()
2778 slb.Map("mymap", [&]() { in FlexBuffersTest()
2779 slb.String("foo", "Fred"); // Testing key and string reuse. in FlexBuffersTest()
2782 slb.Finish(); in FlexBuffersTest()
2785 slb.Map([](flexbuffers::Builder& slb2) { in FlexBuffersTest()
2804 }, slb); in FlexBuffersTest()
2805 slb.Finish(); in FlexBuffersTest()
2809 for (size_t i = 0; i < slb.GetBuffer().size(); i++) in FlexBuffersTest()
2810 printf("%d ", flatbuffers::vector_data(slb.GetBuffer())[i]); in FlexBuffersTest()
2815 auto map = flexbuffers::GetRoot(slb.GetBuffer()).AsMap(); in FlexBuffersTest()
2869 slb.Clear(); in FlexBuffersTest()
2871 TEST_EQ(parser.ParseFlexBuffer(jsontest, nullptr, &slb), true); in FlexBuffersTest()
2872 auto jroot = flexbuffers::GetRoot(slb.GetBuffer()); in FlexBuffersTest()
2891 flexbuffers::Builder slb; in FlexBuffersDeprecatedTest() local
2900 auto start = slb.StartVector(); in FlexBuffersDeprecatedTest()
2902 slb.String(test_data); in FlexBuffersDeprecatedTest()
2904 slb.String("hello"); in FlexBuffersDeprecatedTest()
2914 slb.EndVector(start, true, false); in FlexBuffersDeprecatedTest()
2915 slb.Finish(); in FlexBuffersDeprecatedTest()
2923 auto vec = flexbuffers::GetRoot(slb.GetBuffer()).AsTypedVector(); in FlexBuffersDeprecatedTest()