flatbuffers-pool

Crates.ioflatbuffers-pool
lib.rsflatbuffers-pool
version0.1.3
sourcesrc
created_at2020-03-13 08:57:02.321151
updated_at2020-03-13 09:12:05.875392
descriptionFlatBufferBuilder pool
homepagehttps://github.com/keithnoguchi/flatbuffers-pool
repositoryhttps://github.com/keithnoguchi/flatbuffers-pool
max_upload_size
id218086
size64,245
Keith Noguchi (keithnoguchi)

documentation

https://docs.rs/flatbuffers-pool

README

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);
Commit count: 4

cargo fmt