@@ -167,44 +167,44 @@ class Box<T> {
167
167
QueryBuilder query (Condition qc) => QueryBuilder <T >(_store, _fbManager, _modelEntity.id.id, qc);
168
168
169
169
int count ({int limit = 0 }) {
170
- Pointer <Uint64 > _count = Pointer <Uint64 >.allocate ();
170
+ Pointer <Uint64 > count = Pointer <Uint64 >.allocate ();
171
171
try {
172
- checkObx (bindings.obx_box_count (_cBox, limit, _count ));
173
- return _count .load <int >();
172
+ checkObx (bindings.obx_box_count (_cBox, limit, count ));
173
+ return count .load <int >();
174
174
} finally {
175
- _count .free ();
175
+ count .free ();
176
176
}
177
177
}
178
178
179
179
bool isEmpty () {
180
- Pointer <Uint8 > _isEmpty = Pointer <Uint8 >.allocate ();
180
+ Pointer <Uint8 > isEmpty = Pointer <Uint8 >.allocate ();
181
181
try {
182
- checkObx (bindings.obx_box_is_empty (_cBox, _isEmpty ));
183
- return _isEmpty .load <int >() > 0 ? true : false ;
182
+ checkObx (bindings.obx_box_is_empty (_cBox, isEmpty ));
183
+ return isEmpty .load <int >() > 0 ? true : false ;
184
184
} finally {
185
- _isEmpty .free ();
185
+ isEmpty .free ();
186
186
}
187
187
}
188
188
189
189
bool contains (int id) {
190
- Pointer <Uint8 > _contains = Pointer <Uint8 >.allocate ();
190
+ Pointer <Uint8 > contains = Pointer <Uint8 >.allocate ();
191
191
try {
192
- checkObx (bindings.obx_box_contains (_cBox, id, _contains ));
193
- return _contains .load <int >() > 0 ? true : false ;
192
+ checkObx (bindings.obx_box_contains (_cBox, id, contains ));
193
+ return contains .load <int >() > 0 ? true : false ;
194
194
} finally {
195
- _contains .free ();
195
+ contains .free ();
196
196
}
197
197
}
198
198
199
199
bool containsMany (List <int > ids) {
200
- Pointer <Uint8 > _contains = Pointer <Uint8 >.allocate ();
200
+ Pointer <Uint8 > contains = Pointer <Uint8 >.allocate ();
201
201
try {
202
202
return OBX_id_array .executeWith (ids, (ptr) {
203
- checkObx (bindings.obx_box_contains_many (_cBox, ptr, _contains ));
204
- return _contains .load <int >() > 0 ? true : false ;
203
+ checkObx (bindings.obx_box_contains_many (_cBox, ptr, contains ));
204
+ return contains .load <int >() > 0 ? true : false ;
205
205
});
206
206
} finally {
207
- _contains .free ();
207
+ contains .free ();
208
208
}
209
209
}
210
210
@@ -221,24 +221,24 @@ class Box<T> {
221
221
}
222
222
223
223
int removeMany (List <int > ids) {
224
- Pointer <Uint64 > _removedIds = Pointer <Uint64 >.allocate ();
224
+ Pointer <Uint64 > removedIds = Pointer <Uint64 >.allocate ();
225
225
try {
226
226
return OBX_id_array .executeWith (ids, (ptr) {
227
- checkObx (bindings.obx_box_remove_many (_cBox, ptr, _removedIds ));
228
- return _removedIds .load <int >();
227
+ checkObx (bindings.obx_box_remove_many (_cBox, ptr, removedIds ));
228
+ return removedIds .load <int >();
229
229
});
230
230
} finally {
231
- _removedIds .free ();
231
+ removedIds .free ();
232
232
}
233
233
}
234
234
235
235
int removeAll () {
236
- Pointer <Uint64 > _removedItems = Pointer <Uint64 >.allocate ();
236
+ Pointer <Uint64 > removedIds = Pointer <Uint64 >.allocate ();
237
237
try {
238
- checkObx (bindings.obx_box_remove_all (_cBox, _removedItems ));
239
- return _removedItems .load <int >();
238
+ checkObx (bindings.obx_box_remove_all (_cBox, removedIds ));
239
+ return removedIds .load <int >();
240
240
} finally {
241
- _removedItems .free ();
241
+ removedIds .free ();
242
242
}
243
243
}
244
244
0 commit comments