Crates.io | flatbuffers-pool |
lib.rs | flatbuffers-pool |
version | 0.1.3 |
source | src |
created_at | 2020-03-13 08:57:02.321151 |
updated_at | 2020-03-13 09:12:05.875392 |
description | FlatBufferBuilder pool |
homepage | https://github.com/keithnoguchi/flatbuffers-pool |
repository | https://github.com/keithnoguchi/flatbuffers-pool |
max_upload_size | |
id | 218086 |
size | 64,245 |
RAII based FlatBufferBuilder pool.
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);