(dst, key []byte, uid uint64)
| 33 | return 8 + 4 + len(key) |
| 34 | } |
| 35 | func marshalCountEntry(dst, key []byte, uid uint64) { |
| 36 | binary.BigEndian.PutUint64(dst[0:8], uid) |
| 37 | |
| 38 | binary.BigEndian.PutUint32(dst[8:12], uint32(len(key))) |
| 39 | n := copy(dst[12:], key) |
| 40 | x.AssertTrue(len(dst) == n+12) |
| 41 | } |
| 42 | func (ci countEntry) Uid() uint64 { |
| 43 | return binary.BigEndian.Uint64(ci[0:8]) |
| 44 | } |
no test coverage detected