C# Class BlobSync.CommonOps

Datei anzeigen Open project: kpfaulkner/BlobSync Class Usage Examples

Public Methods

Method Description
CreateRollingSignature ( byte byteBlock, int length ) : RollingSignature
CreateSignatureForLocalFile ( string localFilePath ) : SizeBasedCompleteSignature
DoesFileExist ( string localFilePath ) : bool
GetFileSize ( string localFilePath ) : long
SearchLocalFileForSignatures ( string localFilePath, SizeBasedCompleteSignature sig ) : SignatureSearchResult

Private Methods

Method Description
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

Method Details

CreateRollingSignature() public static method

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

CreateSignatureForLocalFile() public static method

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

DoesFileExist() public static method

public static DoesFileExist ( string localFilePath ) : bool
localFilePath string
return bool

GetFileSize() public static method

public static GetFileSize ( string localFilePath ) : long
localFilePath string
return long

SearchLocalFileForSignatures() public static method

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