MCPcopy Create free account

hub / github.com/akalin/gopar / functions

Functions556 in github.com/akalin/gopar

↓ 42 callersMethodReadFile
(path string)
par2/decoder.go:19
↓ 26 callersMethodWriteFile
(path string, data []byte)
par2/decoder.go:21
↓ 25 callersMethodTimes
Times returns the product of t and u as elements of GF(2^16).
gf2p16/t.go:71
↓ 24 callersFunctionRootDir
RootDir returns a string representing a root directory. On Unix-like systems this is just /, but on Windows it may be C:\ or some other drive letter.
memfs/memfs.go:12
↓ 19 callersMethodLoadFileData
LoadFileData loads existing file data into memory.
par2/decoder.go:389
↓ 17 callersMethodAt
At returns the element at row index i and column index j.
gf2p16/matrix.go:80
↓ 16 callersMethodLoadFileData
LoadFileData loads existing file data into memory.
par1/decoder.go:129
↓ 16 callersMethodLoadParityData
LoadParityData searches for parity volumes and loads them into memory.
par2/decoder.go:496
↓ 16 callersFunctionNewMatrixFromSlice
NewMatrixFromSlice returns a rows x columns matrix with elements taken from the given array in row-major order.
gf2p16/matrix.go:32
↓ 16 callersFunctionmakeBytes
(tb testing.TB, rand *rand.Rand, byteCount int)
gf2p16/slice_test.go:106
↓ 15 callersMethodShardCounts
ShardCounts returns a ShardCounts object for the current shard set.
par2/decoder.go:615
↓ 13 callersMethodInverse
Inverse returns the multiplicative inverse of t, if t != 0. It panics if t == 0.
gf2p16/t.go:83
↓ 13 callersMethodRemoveFile
RemoveFile removes the file at the given path, which may be absolute or relative (to the working directory). The removed data is returned, or os.ErrNo
memfs/memfs.go:107
↓ 12 callersMethodLoadParityData
LoadParityData searches for parity volumes and loads them into memory.
par1/decoder.go:191
↓ 12 callersFunctionNewMatrixFromFunction
NewMatrixFromFunction returns a rows x columns matrix with elements filled in from the given function, which is passed the row index and the column in
gf2p16/matrix.go:46
↓ 12 callersMethodPaths
Paths returns a list of absolute paths of files in fs in no particular order.
memfs/memfs.go:96
↓ 12 callersMethodWrite
(indexPath string)
par2/encoder.go:131
↓ 12 callersFunctionskipNonSSSE3
(t *testing.T)
gf2p16/slice_amd64_test.go:10
↓ 11 callersFunctionfill
(bs []byte, b byte)
gf2p16/slice_amd64_test.go:33
↓ 10 callersMethodRepairNeeded
()
cmd/par/main.go:341
↓ 10 callersFunctionbuildPAR2Data
(t *testing.T, fs memfs.MemFS, basePath string, sliceByteCount, parityShardCount int)
par2/decoder_test.go:113
↓ 10 callersFunctionnewDecoderForTest
(t *testing.T, fs memfs.MemFS, indexPath string)
par2/decoder_test.go:180
↓ 10 callersFunctionrunOnExampleWorkingDirs
(t *testing.T, testFn func(*testing.T, string, bool))
par1/decoder_test.go:254
↓ 9 callersMethodPow
Pow returns the t^p as an element of GF(2^16). T(0).Pow(0) returns 1.
gf2p16/t.go:108
↓ 8 callersFunctionDefaultNumGoroutines
DefaultNumGoroutines returns a default value for the numGoroutines parameter to pass into NewCoderCauchy and NewCoderPAR2Vandermonde. This is not nece
rsec16/coder.go:15
↓ 8 callersMethodDiv
Div returns the product of t and u^{-1} as elements of GF(2^16), if u != 0. It panics if u == 0.
gf2p16/t.go:93
↓ 8 callersMethodGenerateParity
GenerateParity takes a list of data shards, which must have length matching the dataShards value passed into NewCoder, and which must have equal-sized
rsec16/coder.go:149
↓ 8 callersFunctionMakeMemFS
MakeMemFS makes a MemFS from the given working directory and file data.
memfs/memfs.go:52
↓ 8 callersMethodVerifyAllData
VerifyAllData checks and returns whether all data and parity files contain correct data. Note that this is worth calling only when there are no unusab
par1/decoder.go:368
↓ 8 callersFunctionperturbFile
(t *testing.T, fs memfs.MemFS, path string)
par1/decoder_test.go:180
↓ 7 callersFunctionbuildPARData
(t *testing.T, fs memfs.MemFS, parityShardCount int)
par1/decoder_test.go:113
↓ 7 callersFunctionmakeDecoderMemFS
(workingDir string)
par1/decoder_test.go:166
↓ 7 callersFunctionmakeDecoderMemFS
(workingDir string)
par2/decoder_test.go:184
↓ 7 callersFunctionperturbFile
(t *testing.T, fs memfs.MemFS, path string)
par2/decoder_test.go:194
↓ 7 callersFunctionwriteNextPacket
(buf *bytes.Buffer, setID recoverySetID, packetType packetType, body []byte)
par2/packet.go:94
↓ 6 callersMethodFileCounts
FileCounts returns a FileCounts object for the current file set.
par1/decoder.go:333
↓ 6 callersFunctionNumGoroutinesDefault
NumGoroutinesDefault returns the default value used for CreateOptions.NumGoRoutines the latter is <= 0.
par2/create.go:22
↓ 6 callersFunctioncomputeDataFileInfo
(sliceByteCount int, filename string, data []byte)
par2/data_file.go:9
↓ 6 callersFunctioncrcz32
crcz32 is the function such that crc32.ChecksumIEEE(a) = ffffffff ^ crcz(ffffffff.. ^ a).
par2/crc32_test.go:34
↓ 6 callersFunctioncrcz32ReverseBytesShiftLeft
crcz32ReverseBytesShiftLeft returns crcz32(reverseBytes(a) << n), where reverseBytes() maps math.bits.Reverse8 over all bytes of a, given crcz32(a) an
par2/crc32_test.go:41
↓ 6 callersFunctionmulByteSliceLEGeneric
(c T, in, out []byte)
gf2p16/slice.go:3
↓ 6 callersFunctionnewDecoder
(fileIO fileIO, delegate DecoderDelegate, indexFile string)
par1/decoder.go:66
↓ 6 callersFunctionpadPacketBytes
(packetBytes []byte)
par2/file.go:135
↓ 6 callersFunctionwriteVolume
(v volume)
par1/volume.go:66
↓ 5 callersFunctionNewCoderPAR2Vandermonde
NewCoderPAR2Vandermonde returns a Coder that works with the given number of data and parity shards, using a Vandermonde matrix as specified in the PAR
rsec16/coder.go:88
↓ 5 callersMethodReconstructData
ReconstructData takes a list of data shards and parity shards, some of which may be nil, and tries to reconstruct the missing data shards. If successf
rsec16/coder.go:192
↓ 5 callersMethodRepair
Repair tries to repair any missing or corrupt data, using the parity volumes. Returns a list of paths to files that were successfully repaired (relati
par2/decoder.go:654
↓ 5 callersMethodWrite
(indexPath string)
par1/encoder.go:108
↓ 5 callersMethodaddScaledRow
(dest, src int, c T)
gf2p16/matrix.go:138
↓ 5 callersFunctionbyteToTLEArray
(bs []byte)
gf2p16/slice_test.go:225
↓ 5 callersFunctioncrc32ReverseBytesShiftLeft
crc32ReverseBytesShiftLeft returns crc32(reverseBytes(a) << n), given crc32(a), crc32(len(a) copies of 0), and crc32(len(reverseBytes(a) << n) copies
par2/crc32_test.go:69
↓ 5 callersFunctiondecodeNullPaddedASCIIString
(bs []byte)
par2/string.go:21
↓ 5 callersFunctionfileIDLess
(id1, id2 fileID)
par2/main_packet.go:21
↓ 5 callersFunctionfill16
(b byte)
gf2p16/slice_amd64_test.go:39
↓ 5 callersFunctionfillShardInfos
(sliceByteCount int, data []byte, checksumToLocation checksumShardLocationMap, fileID fileID, fileIntegrityInf
par2/decoder.go:312
↓ 5 callersMethodgetFilePath
(info decoderInputFileInfo)
par2/decoder.go:355
↓ 5 callersFunctionmulAndAddUint16Slice
(c T, in, out []uint16)
gf2p16/slice_test.go:44
↓ 5 callersFunctionnewDecoderForTest
(t *testing.T, fs memfs.MemFS, indexFile string)
par1/decoder_test.go:176
↓ 5 callersFunctionprintUsageAndExit
(name string, mask commandMask, err error)
cmd/par/main.go:273
↓ 5 callersMethodrow
row returns a slice into m.elements, so caller must not mutate except for local temporary arrays.
gf2p16/matrix.go:106
↓ 5 callersFunctionrunMulBenchmark
(b *testing.B, fn func(*testing.B, int))
gf2p16/slice_test.go:170
↓ 5 callersFunctiontoAbsPath
(workingDir, path string)
memfs/memfs.go:33
↓ 5 callersFunctionwriteFile
(file file)
par2/file.go:142
↓ 4 callersFunctionNewIdentityMatrix
NewIdentityMatrix returns an n x n identity matrix.
gf2p16/matrix.go:58
↓ 4 callersFunctionapplyNumGoroutines
(fn func(gf2p16.Matrix, [][]byte, [][]byte, int), numGoroutines int)
rsec16/matrix_test.go:88
↓ 4 callersFunctionbyteToUint16LEArray
(bs []byte)
gf2p16/slice_test.go:12
↓ 4 callersFunctioncastByteToTSlice
(bs []byte)
gf2p16/slice_unsafe.go:8
↓ 4 callersFunctioncastTToByteSlice
(ts []T)
gf2p16/slice_amd64.go:65
↓ 4 callersMethodcheckRowIndex
(i int)
gf2p16/matrix.go:67
↓ 4 callersMethodclone
()
gf2p16/matrix.go:111
↓ 4 callersFunctioncomputeFileID
(sixteenKHash [md5.Size]byte, byteCount uint64, filenameBytes []byte)
par2/file_description_packet.go:27
↓ 4 callersFunctionencodeASCIIString
(s string)
par2/string.go:41
↓ 4 callersFunctionilog2
ilog2(n) returns floor(log2(n)), assuming n > 0.
gf2/poly64.go:33
↓ 4 callersFunctionmakeEncoderMemFS
(workingDir string)
par1/encoder_test.go:27
↓ 4 callersFunctionmakeEncoderMemFS
(workingDir string)
par2/encoder_test.go:39
↓ 4 callersFunctionmakeOut
(outputCount, dataByteCount int)
rsec16/matrix_test.go:78
↓ 4 callersFunctionmakeTestData
()
rsec16/coder_test.go:154
↓ 4 callersFunctionmakeVersionNumber
(version uint32)
par1/header.go:12
↓ 4 callersFunctionmulAndAddByteSliceLEGeneric
(c T, in, out []byte)
gf2p16/slice.go:12
↓ 4 callersFunctionnewCRC32Window
(windowSize int)
par2/crc32.go:12
↓ 4 callersFunctionnewDecoder
(fileIO fileIO, delegate DecoderDelegate, indexPath string, numGoroutines int)
par2/decoder.go:248
↓ 4 callersFunctionnewFlagSet
(name string)
cmd/par/main.go:198
↓ 4 callersFunctionrepair
(fileIO fileIO, parPath string, options RepairOptions)
par1/repair.go:40
↓ 4 callersFunctionrepair
(fileIO fileIO, parPath string, options RepairOptions)
par2/repair.go:45
↓ 4 callersFunctionsixteenKHash
(data []byte)
par1/decoder.go:111
↓ 4 callersMethodswapRows
The mutating functions below must not be called except on local temporary arrays.
gf2p16/matrix.go:118
↓ 4 callersFunctiontestCoder
(t *testing.T, testFn func(*testing.T, func(int, int) (Coder, error)))
rsec16/coder_test.go:145
↓ 4 callersFunctiontestMulAndAddByteSliceLE
(t *testing.T, mulAndAddFn func(T, []byte, []byte))
gf2p16/slice_test.go:78
↓ 4 callersFunctiontestMulByteSliceLE
(t *testing.T, mulFn func(T, []byte, []byte))
gf2p16/slice_test.go:50
↓ 4 callersMethodupdate
update returns the crc (crc32.ChecksumIEEE) of a[1:n+1], given the crc of a[0:n], oldLeader = a[0], and newTrailer = a[n], where n is the window size,
par2/crc32.go:80
↓ 3 callersMethodComputeParityData
ComputeParityData computes the parity data for the files.
par1/encoder.go:91
↓ 3 callersMethodComputeParityData
ComputeParityData computes the parity data for the files.
par2/encoder.go:114
↓ 3 callersMethodFileCount
FileCount returns the total number of files.
memfs/memfs.go:91
↓ 3 callersMethodMoveFile
MoveFile moves the file at oldPath to newPath. oldPath and newPath may be either absolute or relative (to the working directory). If the file doesn't
memfs/memfs.go:120
↓ 3 callersFunctionMulAndAddByteSliceLE
MulAndAddByteSliceLE treats in and out as arrays of Ts stored in little-endian format, and adds c.Times(in<T>[i]) to out<T>[i], for each i.
gf2p16/slice_amd64.go:43
↓ 3 callersFunctionMulByteSliceLE
MulByteSliceLE treats in and out as arrays of Ts stored in little-endian format, and sets each out<T>[i] to c.Times(in<T>[i]).
gf2p16/slice_amd64.go:18
↓ 3 callersMethodOnDataFileLoad
(i, n int, path string, byteCount, hits, misses int, err error)
par2/decoder.go:192
↓ 3 callersMethodOnDetectCorruptDataChunk
(fileID [16]byte, path string, startByteOffset, endByteOffset int)
par2/decoder.go:194
↓ 3 callersFunctionapplyMatrixSlice
(m gf2p16.Matrix, in, out [][]byte, outStart, outEnd, dataStart, dataEnd int)
rsec16/matrix.go:9
↓ 3 callersFunctioncalculateParallelParams
(totalLength, numGoroutines, minPerGoroutineLength, perGoroutineLengthDivisor int)
rsec16/matrix.go:31
next →1–100 of 556, ranked by callers