Deveel.Data.Store.StoreBase.CoalesceArea C# (CSharp) Method

CoalesceArea() private method

private CoalesceArea ( long offset, long size ) : void
offset long
size long
return void
        private void CoalesceArea(long offset, long size)
        {
            BytesUtil.WriteInt8(size, headerBuf, 0);

            // ISSUE: Boundary alteration is a moment when corruption could occur.
            //   There are two seeks and writes here and when we are setting the
            //   end points, there is a risk of failure.

            Write(offset, headerBuf, 0, 8);
            Write((offset + size) - 8, headerBuf, 0, 8);
        }