/flatbuffers-pool

RAII based FlatBufferBuilder pool

Primary LanguageRust

flatbuffers-pool

drone crate docs

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);