Exemplo n.º 1
0
        private void GetPutUserHeaderTest(byte[] uHeader)
        {
            IPersistentArrayNextSpace target = InitPA("GetPutPAUserHeaderTest", 1, 16);

            try
            {
                target.PutUserHeader(uHeader);
                byte[] actual = target.GetUserHeader();
                TestHelper.AssertByteArraysAreSame(uHeader, actual);
            }
            finally
            {
                target.Close();
            }
        }
 private int GetNextFreeSpaceIndex()
 {
     byte[] fullUserHeader          = _simpleCollectionNextSpace.GetUserHeader();
     byte[] nextFreeSpaceIndexBytes = fullUserHeader.SubArray(0, GetNextFreeSpaceIndexsize());
     return(nextFreeSpaceIndexBytes.ToInt());
 }
 private HashTableHeader GetHashTableHeader()
 {
     byte[] fullHeader = _simpleCollectionNextIndex.GetUserHeader();
     byte[] myHeader   = fullHeader.SubArray(0, GetHeaderSize());
     return(HashTableHeader.Deserialize(myHeader));
 }
Exemplo n.º 4
0
 private int InitCacheSize()
 {
     byte[] fullUserHeaderBytes = _simpleCollectionNextSpace.GetUserHeader();
     byte[] cacheSizeBytes      = fullUserHeaderBytes.SubArray(0, GetCacheSizeSize());
     return(cacheSizeBytes.ToInt());
 }