Alloc-free conversions between bytes, strings and runes.
At the moment supports the following conversion:
-
[]byte->stringusingBytesToString()/B2S() -
string->[]byteusingStringToBytes()/S2B() -
[]byte->[]runeusingAppendBytesToRunes()/AppendB2R() -
[]rune->[]byteusingAppendRunesToBytes()/AppendR2B() -
string->[]runeusingAppendStringToRunes()/AppendS2R() -
[]rune->stringusingAppendRunesToString()/AppendR2S()
All functions perform fast conversions using unsafe cast or buffer approach.