Пример #1
0
 internal ObjectDirectoryPackParser(FileObjectDatabase odb, InputStream src) : base
         (odb, src)
 {
     this.db         = odb;
     this.crc        = new CRC32();
     this.tailDigest = Constants.NewMessageDigest();
     indexVersion    = db.GetConfig().Get(CoreConfig.KEY).GetPackIndexVersion();
 }
Пример #2
0
 internal LargeObject(int type, long size, FilePath path, AnyObjectId id, FileObjectDatabase
                      db)
 {
     this.type   = type;
     this.size   = size;
     this.path   = path;
     this.id     = id.Copy();
     this.source = db;
 }
Пример #3
0
 internal LargePackedWholeObject(int type, long size, long objectOffset, int headerLength
                                 , PackFile pack, FileObjectDatabase db)
 {
     this.type         = type;
     this.size         = size;
     this.objectOffset = objectOffset;
     this.headerLength = headerLength;
     this.pack         = pack;
     this.db           = db;
 }
Пример #4
0
		internal LargePackedWholeObject(int type, long size, long objectOffset, int headerLength
			, PackFile pack, FileObjectDatabase db)
		{
			this.type = type;
			this.size = size;
			this.objectOffset = objectOffset;
			this.headerLength = headerLength;
			this.pack = pack;
			this.db = db;
		}
Пример #5
0
		internal LargePackedDeltaObject(long objectOffset, long baseOffset, int headerLength
			, PackFile pack, FileObjectDatabase db)
		{
			this.type = Constants.OBJ_BAD;
			this.size = SIZE_UNKNOWN;
			this.objectOffset = objectOffset;
			this.baseOffset = baseOffset;
			this.headerLength = headerLength;
			this.pack = pack;
			this.db = db;
		}
Пример #6
0
 internal LargePackedDeltaObject(long objectOffset, long baseOffset, int headerLength
                                 , PackFile pack, FileObjectDatabase db)
 {
     this.type         = Constants.OBJ_BAD;
     this.size         = SIZE_UNKNOWN;
     this.objectOffset = objectOffset;
     this.baseOffset   = baseOffset;
     this.headerLength = headerLength;
     this.pack         = pack;
     this.db           = db;
 }
Пример #7
0
 internal override FileObjectDatabase.AlternateHandle[] MyAlternates()
 {
     if (alts == null)
     {
         FileObjectDatabase.AlternateHandle[] src = wrapped.MyAlternates();
         alts = new FileObjectDatabase.AlternateHandle[src.Length];
         for (int i = 0; i < alts.Length; i++)
         {
             FileObjectDatabase s = src[i].db;
             alts[i] = new FileObjectDatabase.AlternateHandle(s.NewCachedFileObjectDatabase());
         }
     }
     return(alts);
 }
Пример #8
0
			internal LargeObject(int type, long size, FilePath path, AnyObjectId id, FileObjectDatabase
				 db)
			{
				this.type = type;
				this.size = size;
				this.path = path;
				this.id = id.Copy();
				this.source = db;
			}
Пример #9
0
		internal WindowCursor(FileObjectDatabase db)
		{
			this.db = db;
		}
Пример #10
0
 internal WindowCursor(FileObjectDatabase db)
 {
     this.db = db;
 }
		internal ObjectDirectoryInserter(FileObjectDatabase dest, Config cfg)
		{
			db = dest;
			config = cfg.Get(WriteConfig.KEY);
		}
		internal ObjectDirectoryPackParser(FileObjectDatabase odb, InputStream src) : base
			(odb, src)
		{
			this.db = odb;
			this.crc = new CRC32();
			this.tailDigest = Constants.NewMessageDigest();
			indexVersion = db.GetConfig().Get(CoreConfig.KEY).GetPackIndexVersion();
		}
Пример #13
0
			internal AlternateHandle(FileObjectDatabase db)
			{
				this.db = db;
			}
Пример #14
0
 internal AlternateHandle(FileObjectDatabase db)
 {
     this.db = db;
 }
Пример #15
0
 internal ObjectDirectoryInserter(FileObjectDatabase dest, Config cfg)
 {
     db     = dest;
     config = cfg.Get(WriteConfig.KEY);
 }