Ejemplo n.º 1
0
 public static BplusTreeLong InitializeInStream(System.IO.Stream fromfile, int KeyLength, int NodeSize, int CultureId, long StartSeek)
 {
     if (fromfile.Length>StartSeek)
     {
         throw new BplusTreeException("can't initialize bplus tree inside written area of stream");
     }
     BplusTreeLong result = new BplusTreeLong(fromfile, NodeSize, KeyLength, StartSeek, CultureId);
     result.setHeader();
     result.buffers = BufferFile.InitializeBufferFileInStream(fromfile, result.buffersize, StartSeek+result.headersize);
     return result;
 }