C# 클래스 BlobSync.CommonOps

파일 보기 프로젝트 열기: kpfaulkner/BlobSync 1 사용 예제들

공개 메소드들

메소드 설명
CreateRollingSignature ( byte byteBlock, int length ) : RollingSignature
CreateSignatureForLocalFile ( string localFilePath ) : SizeBasedCompleteSignature
DoesFileExist ( string localFilePath ) : bool
GetFileSize ( string localFilePath ) : long
SearchLocalFileForSignatures ( string localFilePath, SizeBasedCompleteSignature sig ) : SignatureSearchResult

비공개 메소드들

메소드 설명
CommonOps ( ) : System
CreateMD5Signature ( byte byteBlock, int length ) : byte[]
CreateSignatureFromNewAndReusedBlocks ( List allBlocks ) : SizeBasedCompleteSignature

Existing blocks + sigs are in searchResults new

GenerateBlockDict ( BlockSignature sigArray ) : List>.Dictionary
GenerateBlockDict ( CompleteSignature sig ) : List>.Dictionary
GenerateBlockSig ( byte buffer, long offset, int blockSize, uint id ) : BlockSignature
RollSignature ( int length, byte previousByte, byte nextByte, RollingSignature existingSignature ) : RollingSignature
SearchLocalFileForSignaturesBasedOnSize ( CompleteSignature sig, MemoryMappedViewAccessor accessor, List remainingByteList, int sigSize, long fileSize, List signaturesToReuse ) : List

메소드 상세

CreateRollingSignature() 공개 정적인 메소드

public static CreateRollingSignature ( byte byteBlock, int length ) : RollingSignature
byteBlock byte
length int
리턴 BlobSync.Datatypes.RollingSignature

CreateSignatureForLocalFile() 공개 정적인 메소드

public static CreateSignatureForLocalFile ( string localFilePath ) : SizeBasedCompleteSignature
localFilePath string
리턴 BlobSync.Datatypes.SizeBasedCompleteSignature

DoesFileExist() 공개 정적인 메소드

public static DoesFileExist ( string localFilePath ) : bool
localFilePath string
리턴 bool

GetFileSize() 공개 정적인 메소드

public static GetFileSize ( string localFilePath ) : long
localFilePath string
리턴 long

SearchLocalFileForSignatures() 공개 정적인 메소드

public static SearchLocalFileForSignatures ( string localFilePath, SizeBasedCompleteSignature sig ) : SignatureSearchResult
localFilePath string
sig BlobSync.Datatypes.SizeBasedCompleteSignature
리턴 BlobSync.Datatypes.SignatureSearchResult