core :: Int :: add_digest_at
ns
at position pos
# Write self as a string into `ns` at position `pos`
private fun add_digest_at(ns: CString, pos: Int) do
var tmp = (0xF0 & self) >> 4
ns[pos] = if tmp >= 0x0A then tmp + 0x37 else tmp + 0x30
tmp = 0x0F & self
ns[pos + 1] = if tmp >= 0x0A then tmp + 0x37 else tmp + 0x30
end
lib/core/bytes.nit:55,2--61,4