MCPcopy Index your code
hub / github.com/aceld/zinx / IsComplete

Function IsComplete

zdecoder/crc.go:78–87  ·  view source on GitHub ↗
(src []byte, dst []byte)

Source from the content-addressed store, hash-verified

76}
77
78func IsComplete(src []byte, dst []byte) bool {
79 if src != nil && dst != nil {
80 if len(src) == 2 && len(dst) == 2 {
81 if src[0] == dst[0] && src[1] == dst[1] {
82 return true
83 }
84 }
85 }
86 return false
87}
88
89func CheckCRC(src []byte, crc []byte) bool {
90 return IsComplete(GetCrC(src), crc)

Callers 1

CheckCRCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected