(data []byte, key string)
| 69 | } |
| 70 | |
| 71 | func compareKeyFromEntry(data []byte, key string) bool { |
| 72 | length := binary.LittleEndian.Uint16(data[timestampSizeInBytes+hashSizeInBytes:]) |
| 73 | |
| 74 | return bytesToString(data[headersSizeInBytes:headersSizeInBytes+length]) == key |
| 75 | } |
| 76 | |
| 77 | func readHashFromEntry(data []byte) uint64 { |
| 78 | return binary.LittleEndian.Uint64(data[timestampSizeInBytes:]) |
no test coverage detected
searching dependent graphs…