Exemple #1
0
        public void Prepare(SharpMedia.Database.Physical.Journalling.IReadService readService, out SharpMedia.Database.Physical.Journalling.OperationStartupData data)
        {
            // We fill in the data.
            uint allocations = tree.InspectForAdding(readService, index);

            allocations += BlockHelper.MaxBlocksForObject(readService.BlockSize, (ulong)objectData.LongLength);

            data = new OperationStartupData(tree.RootAddress, allocations);
        }
 public void Prepare(SharpMedia.Database.Physical.Journalling.IReadService readService,
                     out SharpMedia.Database.Physical.Journalling.OperationStartupData data)
 {
     data = new SharpMedia.Database.Physical.Journalling.OperationStartupData(0, 10);
 }