4 releases
0.1.3 | Mar 13, 2020 |
---|---|
0.1.2 | Mar 13, 2020 |
0.1.1 | Mar 13, 2020 |
0.1.0 | Mar 13, 2020 |
#9 in #flatbuffers
17KB
271 lines
flatbuffers-pool
RAII based FlatBufferBuilder pool.
Examples
Global pool:
use flatbuffers_pool::FlatBufferBuilderPool;
let mut b = FlatBufferBuilderPool::get();
let name = b.create_string("something fun");
b.finish(name, None);
Local pool:
use flatbuffers_pool::FlatBufferBuilderPool;
let mut pool = FlatBufferBuilderPool::new().build();
let mut b = pool.get();
let name = b.create_string("something fun");
b.finish(name, None);
lib.rs
:
flatbuffer builder pool
Dependencies
~0.7–1MB
~16K SLoC