Open bb010g opened 6 years ago
Hi there! I made it a Box
since I wasn't sure whether the underlying C code was safe to move (e.g. if the ffi::cdb
struct kept a self-referential pointer). If you want to give the source a read-through and confirm/deny this, I'd be interested to know what the answer is! Sadly, I don't have the time myself right now.
Cdb::open
andCdb::new
both returnCdbResult<Box<Cdb>>
, but I can't figure out whyBox
is used. All that struct holds is an integer file descriptor and a reasonably small C struct.