Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Utf8StreamFilter ¶
type Utf8StreamFilter struct {
// contains filtered or unexported fields
}
Utf8StreamFilter replaces invalid runes with utf-8 placeholder character
func (*Utf8StreamFilter) FlushBuffer ¶
func (sf *Utf8StreamFilter) FlushBuffer() []byte
FlushBuffer clears pending continuation bytes and returns placeholder for each of them. Should be used on closing stream connection.
func (*Utf8StreamFilter) ProcessRaw ¶
func (sf *Utf8StreamFilter) ProcessRaw(data []byte) []byte
ProcessRaw returns valid utf-8 symbols from given data Invalid bytes will be replaced with utf-8 placeholder character
Click to show internal directories.
Click to hide internal directories.