Box<T> constructor
- Store _store
Implementation
Box(this._store)
: _supportsBytesArrays = bindings.obx_supports_bytes_array() == 1 {
final entityDefs = _store.entityDef<T>();
_modelEntity = entityDefs.model;
_entityReader = entityDefs.reader;
_fbManager = OBXFlatbuffersManager<T>(_modelEntity, entityDefs.writer);
_cBox = bindings.obx_box(_store.ptr, _modelEntity.id.id);
checkObxPtr(_cBox, 'failed to create box');
}