decode!
Source and package
- Module
- LibTmux
- Package
- LibTmux
- Source
- src/text.jl
- decode!(decoder::Lib
Tmux , chunk::Abstract.Text Decoder Vector {UInt8}; final) -
Methods#
Decode a copied chunk and return its complete text. Incomplete sequences span calls.
final=truefinishes the stream: a remaining partial sequence raisesInvalidUTF8Erroror produces one U+FFFD, according toinvalid. Further calls after final input or a strict error raiseInvalidStateException.decode!(decoder::TextDecoder, chunk::AbstractVector{UInt8}; final=false)Error offsets count all input bytes from one, including earlier chunks, and identify the beginning of the malformed subsequence. No I/O occurs. The decoder must not be shared by concurrent callers.
- Parameters
-
-
chunk( Base.Abstract {UInt8} ) #Vector