package
Version:
v1.7.4
Opens a new window with list of versions in this module.
Published: Jul 6, 2021
License: ISC
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
SEPARATOR_SYMBOL byte = ':'
END_SYMBOL byte = ','
BUFFER_SIZE int = 1024
PARSE_LENGTH State = iota
PARSE_SEPARATOR
PARSE_DATA
PARSE_END
)
func Encode(payload []byte) (raw []byte)
Feed New incoming parsedData packets are feeded into the decoder using this method.
Call this method every time we have a new set of parsedData.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.