add method
Adds an entry naming bytes, keeps them, and returns their id. Every
call adds an entry, so the same bytes added twice have two entries. The
entry goes in before the object: a crash between the two leaves an
entry naming an object that never arrived, which check reports, never
bytes kept with no entry naming them. Throws ObjectNotKept when the
entry went in and the object did not.
Implementation
ObjectId add(Uint8List bytes) => _add(bytes).object;