(data []byte)
| 45 | } |
| 46 | |
| 47 | func readEntry(data []byte) []byte { |
| 48 | length := binary.LittleEndian.Uint16(data[timestampSizeInBytes+hashSizeInBytes:]) |
| 49 | |
| 50 | // copy on read |
| 51 | dst := make([]byte, len(data)-int(headersSizeInBytes+length)) |
| 52 | copy(dst, data[headersSizeInBytes+length:]) |
| 53 | |
| 54 | return dst |
| 55 | } |
| 56 | |
| 57 | func readTimestampFromEntry(data []byte) uint64 { |
| 58 | return binary.LittleEndian.Uint64(data) |
no outgoing calls
searching dependent graphs…