Esempio n. 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();
 }
Esempio n. 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;
 }
 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;
 }
		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;
		}
		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;
		}
 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;
 }
Esempio n. 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);
 }
Esempio n. 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;
			}
Esempio n. 9
0
		internal WindowCursor(FileObjectDatabase db)
		{
			this.db = db;
		}
Esempio n. 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();
		}
Esempio n. 13
0
			internal AlternateHandle(FileObjectDatabase db)
			{
				this.db = db;
			}
Esempio n. 14
0
 internal AlternateHandle(FileObjectDatabase db)
 {
     this.db = db;
 }
 internal ObjectDirectoryInserter(FileObjectDatabase dest, Config cfg)
 {
     db     = dest;
     config = cfg.Get(WriteConfig.KEY);
 }