Helper for getting a sequence of bits from an integer.
(i uint32, cnt byte, from byte)
| 114 | |
| 115 | // Helper for getting a sequence of bits from an integer. |
| 116 | func getBits(i uint32, cnt byte, from byte) byte { |
| 117 | return byte((i >> from) & ((1 << cnt) - 1)) |
| 118 | } |
| 119 | |
| 120 | // Converts an integer in the range 0~1112060 into a rune. |
| 121 | // Based on the ranges table in https://en.wikipedia.org/wiki/UTF-8 |
no outgoing calls
no test coverage detected
searching dependent graphs…