/// Do BeginBlock and return the guard that will call EndBlock automatically on destruction. /// Return null block in case of error. ArchiveBlock OpenBlock(string name, uint sizeHint, bool safe, ArchiveBlockType type) { bool opened = BeginBlock(name, ref sizeHint, safe, type); return(opened ? new ArchiveBlock(this, sizeHint) : new ArchiveBlock()); }
/// Do BeginBlock and return the guard that will call EndBlock automatically on destruction. ArchiveBlock OpenBlock(string name, uint sizeHint, bool safe, ArchiveBlockType type) { BeginBlock(name, ref sizeHint, safe, type); return(new ArchiveBlock(this, sizeHint)); }