Versions in this module Expand all Collapse all v0 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + func AppendInt16(data []byte, v int16) []byte + func AppendInt32(data []byte, v int32) []byte + func AppendUint16(data []byte, v uint16) []byte + func AppendUint32(data []byte, v uint32) []byte + func Concat(args ...interface{}) (out []byte) + func Copy(src []byte) (dst []byte) + func CutUntilToken(text, token []byte, startAt int, checkEsc bool) (cut []byte, pos int, found bool) + func DumpPrettyTable(w io.Writer, title string, data []byte) + func EncloseRemove(text, leftToken, rightToken []byte) (cut []byte, found bool) + func EncloseToken(text, token, leftcap, rightcap []byte) (newtext []byte, found bool) + func InReplace(text, allowed []byte, c byte) []byte + func Indexes(text, token []byte) (idxs []int) + func IsTokenAt(text, token []byte, p int) bool + func MergeSpaces(in []byte) (out []byte) + func ParseHexDump(in []byte, networkByteOrder bool) (out []byte, err error) + func PrintHex(title string, data []byte, col int) + func ReadHexByte(data []byte, x int) (b byte, ok bool) + func ReadInt16(data []byte, x uint) (v int16) + func ReadInt32(data []byte, x uint) (v int32) + func ReadUint16(data []byte, x uint) (v uint16) + func ReadUint32(data []byte, x uint) (v uint32) + func RemoveSpaces(in []byte) (out []byte) + func SkipAfterToken(text, token []byte, startAt int, checkEsc bool) (int, bool) + func SnippetByIndexes(s []byte, indexes []int, sniplen int) (snippets [][]byte) + func SplitEach(data []byte, n int) (chunks [][]byte) + func TokenFind(text, token []byte, startat int) (at int) + func TrimNull(in []byte) (out []byte) + func WordIndexes(s []byte, word []byte) (idxs []int) + func WriteUint16(data []byte, x uint, v uint16) + func WriteUint32(data []byte, x uint, v uint32) + type Parser struct + func NewParser(content, delims []byte) (bp *Parser) + func (bp *Parser) AddDelimiters(delims []byte) + func (bp *Parser) Delimiters() []byte + func (bp *Parser) Read() (token []byte, d byte) + func (bp *Parser) ReadLine() (line []byte, c byte) + func (bp *Parser) ReadN(n int) (token []byte, d byte) + func (bp *Parser) ReadNoSpace() (token []byte, d byte) + func (bp *Parser) Remaining() []byte + func (bp *Parser) RemoveDelimiters(delims []byte) + func (bp *Parser) Reset(content, delims []byte) + func (bp *Parser) SetDelimiters(delims []byte) + func (bp *Parser) Skip() (c byte) + func (bp *Parser) SkipHorizontalSpaces() (n int, c byte) + func (bp *Parser) SkipLine() (c byte) + func (bp *Parser) SkipN(n int) (c byte) + func (bp *Parser) SkipSpaces() (n int, c byte) + func (bp *Parser) Stop() (remain []byte, pos int) + func (bp *Parser) UnreadN(n int) byte