예제 #1
0
        private void GetUserHeaderSizeTestAssert(int expected)
        {
            IPersistentArrayNextSpace target = InitPA("GetPAUserHeaderSizeTest", 1, expected);

            try
            {
                int actual = target.GetUserHeaderSize();
                Assert.AreEqual(expected, actual);
            }
            finally
            {
                target.Close();
            }
        }
        //private byte[] GetHeader()
        //{
        //    byte[] fullUHeader = _simpleCollectionNextSpace.GetUserHeader();
        //    return fullUHeader.SubArray(0, GetFreeSpaceSize());
        //}

        public int GetUserHeaderSize()
        {
            return(_simpleCollectionNextSpace.GetUserHeaderSize() - GetFreeSpaceSize());
        }
 public int GetUserHeaderSize()
 {
     return(_simpleCollectionNextIndex.GetUserHeaderSize() - GetHeaderSize());
 }