Exemplo n.º 1
0
        /// 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());
        }
Exemplo n.º 2
0
 /// 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));
 }