Versions in this module Expand all Collapse all v1 v1.0.1 Jul 5, 2023 Changes in this version + const MaxPayloadSize + const OversizePayloadMax + var ErrInvalidPktLen = errors.New("invalid pkt-len found") + var ErrPayloadTooLong = errors.New("payload is too long") + var Flush = []byte + var FlushPkt = []byte + var FlushString = "" + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(payloads ...[]byte) error + func (e *Encoder) EncodeString(payloads ...string) error + func (e *Encoder) Encodef(format string, a ...interface{}) error + func (e *Encoder) Flush() error + type Scanner struct + func NewScanner(r io.Reader) *Scanner + func (s *Scanner) Bytes() []byte + func (s *Scanner) Err() error + func (s *Scanner) Scan() bool