(n uint64)
| 249 | } |
| 250 | |
| 251 | func Uint64ToBytes(n uint64) []byte { |
| 252 | return []byte{ |
| 253 | byte(n), |
| 254 | byte(n >> 8), |
| 255 | byte(n >> 16), |
| 256 | byte(n >> 24), |
| 257 | byte(n >> 32), |
| 258 | byte(n >> 40), |
| 259 | byte(n >> 48), |
| 260 | byte(n >> 56), |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func FormatBinaryDate(n int, data []byte) ([]byte, error) { |
| 265 | switch n { |
no outgoing calls
no test coverage detected