MCPcopy Create free account

hub / github.com/Redundancy/go-sync / functions

Functions329 in github.com/Redundancy/go-sync

↓ 1 callersMethodGetStrongChecksumForBlock
(blockID int)
filechecksum/verifier.go:9
↓ 1 callersFunctionIsSameFile
IsSameFile checks if two file paths are the same file
rsync.go:229
↓ 1 callersMethodReadBytes
()
blocksources/blocksourcebase.go:95
↓ 1 callersMethodRemoveBytes
(bs []byte, length int)
filechecksum/filechecksum.go:48
↓ 1 callersMethodReset
Reset the hash to the initial state
rollsum/rollsum_32_base.go:73
↓ 1 callersMethodResponse
()
blocksources/helpers.go:57
↓ 1 callersMethodSetBlock
Set a whole block of blockSize
rollsum/rollsum_32_base.go:67
↓ 1 callersMethodVerifyBlockRange
(startBlockID uint, data []byte)
blocksources/blocksourcebase.go:36
↓ 1 callersMethodWeakCount
()
index/index.go:93
↓ 1 callersFunctioncalculateNumberOfCompletedBlocks
(resultLength int, blockSize int64)
patcher/sequential/sequential.go:135
↓ 1 callersMethodclear
()
blocksources/helpers.go:24
↓ 1 callersFunctionerrorWrapper
(c *cli.Context, f func(*cli.Context) error)
cmd/gosync/common.go:28
↓ 1 callersFunctionformatFileError
(filename string, err error)
cmd/gosync/common.go:56
↓ 1 callersMethodgenerate
( resultChan chan ChecksumResults, blocksPerResult uint, compressionFunction CompressionFunction, inputFil
filechecksum/filechecksum.go:144
↓ 1 callersFunctiongetOutFile
(filename string)
rsync.go:213
↓ 1 callersFunctiongetTempFile
()
rsync.go:221
↓ 1 callersFunctionisBordering
(a, b *BlockSpan, blockSize int64)
comparer/merger.go:85
↓ 1 callersMethodloop
()
blocksources/blocksourcebase.go:131
↓ 1 callersFunctionmultithreadedMatching
( localFile *os.File, idx *index.ChecksumIndex, localFileSize, matcherCount int64, blocksize uint, )
cmd/gosync/common.go:238
↓ 1 callersMethodsendIfPending
()
blocksources/helpers.go:64
↓ 1 callersFunctionsetupServer
set up a http server locally that will respond predictably to ranged requests
http_test.go:35
↓ 1 callersMethodstartFindMatchingBlocks_int
* TODO: When matching duplicated blocks, a channel of BlockMatchResult slices would be more efficient */
comparer/comparer.go:87
↓ 1 callersFunctiontoPatcherFoundSpan
(sl comparer.BlockSpanList, blockSize int64)
rsync.go:324
↓ 1 callersFunctiontoPatcherMissingSpan
(sl comparer.BlockSpanList, blockSize int64)
rsync.go:337
↓ 1 callersFunctionwithinFirstBlockOfLocalBlocks
(currentBlock uint, localBlocks []patcher.FoundBlockSpan)
patcher/sequential/sequential.go:131
↓ 1 callersFunctionwithinFirstBlockOfRemoteBlocks
(currentBlock uint, remoteBlocks []patcher.MissingBlockSpan)
patcher/sequential/sequential.go:127
↓ 1 callersFunctionwriteHeaders
( f *os.File, magic string, blocksize uint32, filesize int64, versions []uint16, )
cmd/gosync/common.go:138
MethodAddByte
(b byte)
filechecksum/filechecksum.go:44
MethodAddBytes
(bs []byte)
filechecksum/filechecksum.go:47
FunctionBenchmarkIncrementalRollsum32
This is the benchmark where Rollsum should beat a full MD5 for each blocksize
rollsum/rollsum_32_test.go:256
FunctionBenchmarkIncrementalRollsum32WithC2
The C2 veersion should avoid all allocations in the main loop, and beat the pants off the other versions
rollsum/rollsum_32_test.go:277
FunctionBenchmarkIndex1024
(b *testing.B)
index/index_bench_test.go:12
FunctionBenchmarkIndex8192
(b *testing.B)
index/index_bench_test.go:38
FunctionBenchmarkIndexAsListBinarySearch8192
Check how fast a sorted list of 8192 items would be
index/index_bench_test.go:64
FunctionBenchmarkIndexAsListLinearSearch8192
Check how fast a sorted list of 8192 items would be Checking for cache coherency gains
index/index_bench_test.go:83
FunctionBenchmarkIndexComparisons
(b *testing.B)
gosync_test.go:85
FunctionBenchmarkNonRepeatingSequence
(b *testing.B)
util/readers/nonrepeating_test.go:46
FunctionBenchmarkRollsum32
(b *testing.B)
rollsum/rollsum_32_test.go:207
FunctionBenchmarkRollsum32Base
(b *testing.B)
rollsum/rollsum_32_test.go:239
FunctionBenchmarkRollsum32_8096
(b *testing.B)
rollsum/rollsum_32_test.go:223
FunctionBenchmarkSingleWrites
This should have no allocations!
circularbuffer/noalloc_test.go:170
FunctionBenchmarkStrongComparison
(b *testing.B)
comparer/comparer_bench_test.go:56
FunctionBenchmarkWeakComparison
(b *testing.B)
comparer/comparer_bench_test.go:34
FunctionBenchmark_256SplitBinarySearch
(b *testing.B)
index/index_bench_test.go:104
FunctionBenchmark_256Split_Map
* This is currently the best performing contender for the index data structure for weak checksum lookups. */
index/index_bench_test.go:130
MethodBlockSize
The most efficient byte length to call Write with
rollsum/rollsum_32.go:53
FunctionBuild
(c *cli.Context)
cmd/gosync/build.go:32
MethodClose
Close - add file path information to closing a file
rsync.go:269
MethodClose
()
rsync.go:283
MethodClose
()
rsync.go:292
FunctionDiff
(c *cli.Context)
cmd/gosync/diff.go:32
MethodDoRequest
(startOffset int64, endOffset int64)
blocksources/blocksourcebase_test.go:20
MethodDoRequest
(startOffset int64, endOffset int64)
blocksources/blocksourcebase_test.go:31
MethodDoRequest
(startOffset int64, endOffset int64)
blocksources/readseeker_blocksource.go:35
MethodDoRequest
(startOffset int64, endOffset int64)
blocksources/httpblocksource.go:52
MethodError
()
blocksources/httpblocksource.go:40
FunctionExample
()
gosync_test.go:16
FunctionExampleFileChecksumGenerator_LoadChecksumsFromReader
()
filechecksum/filechecksum_test.go:280
FunctionExample_httpBlockSource
This is exceedingly similar to the module Example, but uses the http blocksource and a local http server
http_test.go:63
MethodFindStrongChecksum2
(bytes []byte, weak interface{})
rsync.go:64
MethodFindStrongChecksum2
(chk []byte, weak interface{})
comparer/comparer_bench_test.go:19
MethodFindStrongChecksum2
(chk []byte, weak interface{})
comparer/comparer_bench_test.go:30
MethodFindStrongChecksum2
(chk []byte, weak interface{})
index/index.go:117
MethodFindWeakChecksum2
(chk []byte)
comparer/comparer_bench_test.go:15
MethodFindWeakChecksum2
(chk []byte)
comparer/comparer_bench_test.go:26
MethodGetBlockCount
GetBlockCount gets the number of blocks
rsync.go:83
MethodGetBlockStartOffset
(blockID uint)
blocksources/fixed_size_block_resolver.go:9
MethodGetLastBlock
()
rollsum/rollsum_32.go:83
MethodGetLastBlock
the last set of bytes of the size of the circular buffer oldest to newest
comparer/comparer.go:29
MethodGetStrongChecksumForBlock
(blockID int)
rsync.go:65
MethodGetStrongChecksumForBlock
(blockID int)
filechecksum/verifier_test.go:10
MethodGetStrongChecksumForBlock
(blockID int)
filechecksum/verifier_test.go:32
MethodGetStrongChecksumForBlock
(blockID int)
chunks/chunks.go:85
MethodGetStrongChecksumForBlock
(blockID int)
blocksources/httpblocksource_test.go:217
FunctionInjectedReader
Injects the second reader into the first at an offset
util/readers/injectedreader.go:8
MethodIsFatal
(err error)
blocksources/blocksourcebase_test.go:24
MethodIsFatal
(err error)
blocksources/blocksourcebase_test.go:35
MethodIsFatal
(err error)
blocksources/readseeker_blocksource.go:52
MethodIsFatal
(err error)
blocksources/httpblocksource.go:108
MethodIsFatal
If an error raised by DoRequest should cause BlockSourceBase to give up, return true
blocksources/blocksourcebase.go:21
MethodLen
Sortable interface
index/index.go:128
MethodLen
()
blocksources/helpers.go:75
MethodLen
()
blocksources/helpers.go:101
MethodLen
()
blocksources/sortableBlockResponse.go:9
MethodLess
(than llrb.Item)
comparer/merger.go:46
MethodLess
(than llrb.Item)
comparer/merger.go:58
MethodLess
(than llrb.Item)
comparer/merger.go:69
MethodLess
(i, j int)
comparer/merger.go:246
MethodLess
Sortable interface
index/index.go:138
MethodLess
(i, j int)
blocksources/helpers.go:83
MethodLess
(i, j int)
blocksources/helpers.go:109
MethodLess
(i, j int)
blocksources/sortableBlockResponse.go:17
FunctionMakeRSync
MakeRSync creates an RSync object using string paths, inferring most of the configuration
rsync.go:94
FunctionPatch
Patch a file
cmd/gosync/patch.go:40
MethodPosition
()
comparer/merger.go:42
MethodPosition
()
comparer/merger.go:54
MethodPosition
()
comparer/merger.go:65
MethodRead
(p []byte)
util/readers/nonrepeating.go:25
MethodRead
(p []byte)
util/readers/uniformreader.go:14
MethodRemoveByte
(b byte, length int)
filechecksum/filechecksum.go:45
← previousnext →101–200 of 329, ranked by callers