Short returns an integer representing bits 0-63 of the device ID.
()
| 104 | |
| 105 | // Short returns an integer representing bits 0-63 of the device ID. |
| 106 | func (n DeviceID) Short() ShortID { |
| 107 | return ShortID(binary.BigEndian.Uint64(n[:])) |
| 108 | } |
| 109 | |
| 110 | func (n DeviceID) MarshalText() ([]byte, error) { |
| 111 | return []byte(n.String()), nil |