Versions in this module Expand all Collapse all v6 v6.3.6 Mar 4, 2021 v6.3.5 Mar 3, 2021 Changes in this version + var ErrNoArgValue = errors.New("no Args value for the given key") + func AppendHTMLEscape(dst []byte, s string) []byte + func AppendHTMLEscapeBytes(dst, s []byte) []byte + func AppendHTTPDate(dst []byte, date time.Time) []byte + func AppendIPv4(dst []byte, ip net.IP) []byte + func AppendQuotedArg(dst, src []byte) []byte + func AppendUint(dst []byte, n int) []byte + func ParseHTTPDate(date []byte) (time.Time, error) + func ParseIPv4(dst net.IP, ipStr []byte) (net.IP, error) + func ParseUfloat(buf []byte) (float64, error) + func ParseUint(buf []byte) (int, error) + func ReleaseArgs(a *Args) + func ReleaseByteBuffer(b *ByteBuffer) + func ToJSONStr(s []byte, escapeHTML bool) []byte + type Args struct + func AcquireArgs() *Args + func (a *Args) Add(key, value string) + func (a *Args) AddBytesK(key []byte, value string) + func (a *Args) AddBytesKV(key, value []byte) + func (a *Args) AddBytesV(key string, value []byte) + func (a *Args) AppendBytes(dst []byte) []byte + func (a *Args) CopyTo(dst *Args) + func (a *Args) Del(key string) + func (a *Args) DelBytes(key []byte) + func (a *Args) GetBool(key string) bool + func (a *Args) GetUfloat(key string) (float64, error) + func (a *Args) GetUfloatOrZero(key string) float64 + func (a *Args) GetUint(key string) (int, error) + func (a *Args) GetUintOrZero(key string) int + func (a *Args) Has(key string) bool + func (a *Args) HasBytes(key []byte) bool + func (a *Args) Len() int + func (a *Args) Parse(s string) + func (a *Args) ParseBytes(b []byte) + func (a *Args) Peek(key string) []byte + func (a *Args) PeekBytes(key []byte) []byte + func (a *Args) PeekMulti(key string) [][]byte + func (a *Args) PeekMultiBytes(key []byte) [][]byte + func (a *Args) QueryString() []byte + func (a *Args) Reset() + func (a *Args) Set(key, value string) + func (a *Args) SetBytesK(key []byte, value string) + func (a *Args) SetBytesKV(key, value []byte) + func (a *Args) SetBytesV(key string, value []byte) + func (a *Args) SetUint(key string, value int) + func (a *Args) SetUintBytes(key []byte, value int) + func (a *Args) String() string + func (a *Args) VisitAll(f func(key, value []byte)) + func (a *Args) WriteTo(w io.Writer) (int64, error) + type BufferPool struct + func (p *BufferPool) Get() *ByteBuffer + func (p *BufferPool) Put(b *ByteBuffer) + type BufioReader struct + func NewBufioReader(r io.Reader, limit ...int64) *BufioReader + func NewBufioReaderSize(r io.Reader, size int, limit ...int64) *BufioReader + func (b *BufioReader) Buffered() int + func (b *BufioReader) Count() int64 + func (b *BufioReader) Discard(n int) (discarded int, err error) + func (b *BufioReader) Read(p []byte) (int, error) + func (b *BufioReader) ReadByte() (byte, error) + func (b *BufioReader) Reset(r io.Reader) + func (b *BufioReader) ResetCount() + func (b *BufioReader) ResetLimit(limit int64) + type BufioWriter struct + func NewBufioWriter(w io.Writer) *BufioWriter + func NewBufioWriterSize(w io.Writer, size int) *BufioWriter + func (b *BufioWriter) Available() int + func (b *BufioWriter) Buffered() int + func (b *BufioWriter) Count() int64 + func (b *BufioWriter) Flush() error + func (b *BufioWriter) ReadFrom(r io.Reader) (int64, error) + func (b *BufioWriter) Reset(w io.Writer) + func (b *BufioWriter) ResetCount() + func (b *BufioWriter) Write(p []byte) (int, error) + func (b *BufioWriter) WriteByte(c byte) error + func (b *BufioWriter) WriteRune(r rune) (int, error) + func (b *BufioWriter) WriteString(s string) (int, error) + type ByteBuffer struct + B []byte + func AcquireByteBuffer() *ByteBuffer + func (b *ByteBuffer) Bytes() []byte + func (b *ByteBuffer) ChangeLen(newLen int) + func (b *ByteBuffer) Len() int + func (b *ByteBuffer) ReadFrom(r io.Reader) (int64, error) + func (b *ByteBuffer) Reset() + func (b *ByteBuffer) Set(p []byte) + func (b *ByteBuffer) SetString(s string) + func (b *ByteBuffer) String() string + func (b *ByteBuffer) Write(p []byte) (int, error) + func (b *ByteBuffer) WriteByte(c byte) error + func (b *ByteBuffer) WriteString(s string) (int, error) + type CountString struct + func NewCountString(maxLen int) *CountString + func (c *CountString) Incr() *CountString + func (c *CountString) String() string + type ReadCounter struct + func NewReadCounter(r io.Reader) *ReadCounter + func (rp *ReadCounter) Read(p []byte) (int, error) + func (rp *ReadCounter) Readed() int + func (rp *ReadCounter) Reset(r io.Reader) + func (rp *ReadCounter) Zero() + type ReadWriteCounter struct + func NewReadWriteCounter(rw io.ReadWriter) *ReadWriteCounter + func (rwp *ReadWriteCounter) Reset(rw io.ReadWriter) + func (rwp *ReadWriteCounter) Zero() + type WriteCounter struct + func NewWriteCounter(w io.Writer) *WriteCounter + func (wp *WriteCounter) Reset(w io.Writer) + func (wp *WriteCounter) Write(p []byte) (int, error) + func (wp *WriteCounter) Writed() int + func (wp *WriteCounter) Zero() Other modules containing this package github.com/fyyang/erpc