(b []byte, num T)
| 5 | } |
| 6 | |
| 7 | func PutBE[T Integer](b []byte, num T) []byte { |
| 8 | for i, n := 0, len(b); i < n; i++ { |
| 9 | b[i] = byte(num >> ((n - i - 1) << 3)) |
| 10 | } |
| 11 | return b |
| 12 | } |
| 13 | |
| 14 | func ReadBE[T Integer](b []byte) (num T) { |
| 15 | num = 0 |
no outgoing calls
no test coverage detected