core :: Codec :: add_string_to
s
coded as the supported encoding to b
Returns the number of bytes written to s
# Adds a string `s` coded as the supported encoding to `b`
#
# Returns the number of bytes written to `s`
fun add_string_to(s: Text, b: Bytes): Int is abstract
lib/core/codecs/codec_base.nit:43,2--46,54
redef fun add_string_to(s, b) do
s.append_to_bytes(b)
return s.byte_length
end
lib/core/codecs/utf8.nit:49,2--52,4