parentPrefixKey returns the parent part of the composite key with the zero byte separator.
(parent uint64)
| 61 | // parentPrefixKey returns the parent part of the composite key with the |
| 62 | // zero byte separator. |
| 63 | func parentPrefixKey(parent uint64) []byte { |
| 64 | b := make([]byte, binary.Size(parent)+1) |
| 65 | i := binary.PutUvarint(b, parent) |
| 66 | return b[0 : i+1] |
| 67 | } |
| 68 | |
| 69 | // getParentPrefix returns the first part of the composite key which |
| 70 | // represents the parent identifier. |