コード例 #1
0
        protected virtual int EmitCopy(int iBasePos, int iLength, Stream BaseFile, AddCopyList List)
        {
            Copy C = new Copy();

            C.iBaseOffset = iBasePos;
            C.iLength     = iLength;
            List.Add(C);
            return(iLength);
        }
コード例 #2
0
        protected virtual void EmitAdd(int iVerStart, int iLength, Stream VerFile, AddCopyList List)
        {
            Addition Add = new Addition();

            VerFile.Seek(iVerStart, SeekOrigin.Begin);
            Add.arBytes = new byte[iLength];
            VerFile.Read(Add.arBytes, 0, iLength);
            List.Add(Add);
        }
コード例 #3
0
ファイル: BinaryDiff.cs プロジェクト: necora/ank_git
 protected virtual int EmitCopy(int iBasePos, int iLength, Stream BaseFile, AddCopyList List)
 {
     Copy C = new Copy();
     C.iBaseOffset = iBasePos;
     C.iLength = iLength;
     List.Add(C);
     return iLength;
 }
コード例 #4
0
ファイル: BinaryDiff.cs プロジェクト: necora/ank_git
 protected virtual void EmitAdd(int iVerStart, int iLength, Stream VerFile, AddCopyList List)
 {
     Addition Add = new Addition();
     VerFile.Seek(iVerStart, SeekOrigin.Begin);
     Add.arBytes = new byte[iLength];
     VerFile.Read(Add.arBytes, 0, iLength);
     List.Add(Add);
 }