Size implements the Datum interface.
()
| 1704 | |
| 1705 | // Size implements the Datum interface. |
| 1706 | func (d *DEncodedKey) Size() uintptr { |
| 1707 | return unsafe.Sizeof(*d) + uintptr(len(*d)) |
| 1708 | } |
| 1709 | |
| 1710 | // UnsafeBytes returns the raw bytes avoiding allocation. It is "unsafe" because |
| 1711 | // the contract is that callers must not to mutate the bytes but there is |