/// <exception cref="System.IO.IOException"></exception> public override ObjectId Insert(int type, byte[] data, int off, int len) { ObjectId id = IdFor(type, data, off, len); if (db.Has(id)) { return(id); } else { FilePath tmp = ToTemp(type, data, off, len); return(InsertOneObject(tmp, id)); } }
/// <exception cref="System.IO.IOException"></exception> public override bool Has(AnyObjectId objectId) { return(db.Has(objectId)); }