expand puts the specified byte into each of the 8 bytes of a uint64.
(b byte)
| 77 | |
| 78 | // expand puts the specified byte into each of the 8 bytes of a uint64. |
| 79 | func expand(b byte) uint64 { |
| 80 | return lsb * uint64(b) |
| 81 | } |
| 82 | |
| 83 | func stringToUint64(s string) []uint64 { |
| 84 | return *(*[]uint64)(unsafe.Pointer(&sliceHeader{ |