Lines Matching refs:slb
1364 flexbuffers::Builder slb(512, in FlexBuffersTest() local
1369 slb.Map([&]() { in FlexBuffersTest()
1370 slb.Vector("vec", [&]() { in FlexBuffersTest()
1371 slb += -100; // Equivalent to slb.Add(-100) or slb.Int(-100); in FlexBuffersTest()
1372 slb += "Fred"; in FlexBuffersTest()
1373 slb.IndirectFloat(4.0f); in FlexBuffersTest()
1376 slb.Vector("bar", ints, 3); in FlexBuffersTest()
1377 slb.FixedTypedVector("bar3", ints, 3); in FlexBuffersTest()
1378 slb.Double("foo", 100); in FlexBuffersTest()
1379 slb.Map("mymap", [&]() { in FlexBuffersTest()
1380 slb.String("foo", "Fred"); // Testing key and string reuse. in FlexBuffersTest()
1383 slb.Finish(); in FlexBuffersTest()
1385 for (size_t i = 0; i < slb.GetBuffer().size(); i++) in FlexBuffersTest()
1386 printf("%d ", slb.GetBuffer().data()[i]); in FlexBuffersTest()
1389 auto map = flexbuffers::GetRoot(slb.GetBuffer()).AsMap(); in FlexBuffersTest()