Commit 5d9abc6
MINOR: sample: Add base2 converter
This commit adds the base2 converter to turn binary input into it's
string representation. Each input byte is converted into a series of
eight characters which are either 0s and 1s by bit-wise comparison.1 parent a6986e1 commit 5d9abc6
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19962 | 19962 | | |
19963 | 19963 | | |
19964 | 19964 | | |
| 19965 | + | |
19965 | 19966 | | |
19966 | 19967 | | |
19967 | 19968 | | |
| |||
20186 | 20187 | | |
20187 | 20188 | | |
20188 | 20189 | | |
| 20190 | + | |
| 20191 | + | |
| 20192 | + | |
| 20193 | + | |
| 20194 | + | |
| 20195 | + | |
20189 | 20196 | | |
20190 | 20197 | | |
20191 | 20198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2151 | 2151 | | |
2152 | 2152 | | |
2153 | 2153 | | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2154 | 2173 | | |
2155 | 2174 | | |
2156 | 2175 | | |
| |||
5441 | 5460 | | |
5442 | 5461 | | |
5443 | 5462 | | |
| 5463 | + | |
5444 | 5464 | | |
5445 | 5465 | | |
5446 | 5466 | | |
| |||
0 commit comments