utf8

fs2.text.utf8
object utf8

Attributes

Source
text.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
utf8.type

Members list

Value members

Concrete methods

def decode[F[_]]: (F, Byte) => String

Converts UTF-8 encoded byte stream to a stream of String.

Converts UTF-8 encoded byte stream to a stream of String.

Note that the output stream is not a singleton stream but rather a stream of strings where each string is the result of UTF8 decoding a chunk of the underlying byte stream.

Attributes

Source
text.scala
def decodeC[F[_]]: (F, Chunk[Byte]) => String

Converts UTF-8 encoded Chunk[Byte] inputs to String.

Converts UTF-8 encoded Chunk[Byte] inputs to String.

Attributes

Source
text.scala
def encode[F[_]]: (F, String) => Byte

Encodes a stream of String in to a stream of bytes using the UTF-8 charset.

Encodes a stream of String in to a stream of bytes using the UTF-8 charset.

Attributes

Source
text.scala
def encodeC[F[_]]: (F, String) => Chunk[Byte]

Encodes a stream of String in to a stream of Chunk[Byte] using the UTF-8 charset.

Encodes a stream of String in to a stream of Chunk[Byte] using the UTF-8 charset.

Attributes

Source
text.scala