Versions in this module Expand all Collapse all v4 v4.4.5 Jan 9, 2024 v4.4.4 Jan 9, 2024 Changes in this version + const MaxRtpDiff + var ErrTooLarge = errors.New("IOBuffer: too large") + func DecodeGbk(v interface{}, body []byte) error + func GbkToUtf8(s []byte) ([]byte, error) + func Get() *bytes.Buffer + func NewError(err error, params ...interface{}) error + func PrintStack() + func Put(b *bytes.Buffer) + func RandNum16String(n int) string + func RandNumString(n int) string + func RandString(n int) string + func ResolveSelfIP() (net.IP, error) + func ToJSONString(v interface{}) string + func ToPrettyString(v interface{}) string + type Error struct + func (err *Error) Error() string + type IOBuffer struct + func (b *IOBuffer) Len() int + func (b *IOBuffer) Next(n int) []byte + func (b *IOBuffer) ReadByte() (byte, error) + func (b *IOBuffer) ReadN(length int) ([]byte, error) + func (b *IOBuffer) Reset() + func (b *IOBuffer) Skip(n int) (err error) + func (b *IOBuffer) Uint16() (uint16, error) + func (b *IOBuffer) Uint32() (uint32, error) + func (b *IOBuffer) Write(p []byte) (n int, err error) + type Pool struct + func (p *Pool) Get() *bytes.Buffer + func (p *Pool) Put(b *bytes.Buffer) + type PriorityQueueRtp struct + func NewPqRtp() *PriorityQueueRtp + func (p *PriorityQueueRtp) Empty() + func (p *PriorityQueueRtp) Len() int + func (p *PriorityQueueRtp) Pop() (rtp.Packet, error) + func (p *PriorityQueueRtp) Push(v rtp.Packet) + type ZapLogger struct + func NewZapLogger(log *m7slog.Logger, prefix string, fields log.Fields) (z *ZapLogger) + func (l *ZapLogger) Debug(args ...interface{}) + func (l *ZapLogger) Debugf(format string, args ...interface{}) + func (l *ZapLogger) Error(args ...interface{}) + func (l *ZapLogger) Errorf(format string, args ...interface{}) + func (l *ZapLogger) Fatal(args ...interface{}) + func (l *ZapLogger) Fatalf(format string, args ...interface{}) + func (l *ZapLogger) Fields() log.Fields + func (l *ZapLogger) Info(args ...interface{}) + func (l *ZapLogger) Infof(format string, args ...interface{}) + func (l *ZapLogger) Panic(args ...interface{}) + func (l *ZapLogger) Panicf(format string, args ...interface{}) + func (l *ZapLogger) Prefix() string + func (l *ZapLogger) Print(args ...interface{}) + func (l *ZapLogger) Printf(format string, args ...interface{}) + func (l *ZapLogger) SetLevel(level uint32) + func (l *ZapLogger) Trace(args ...interface{}) + func (l *ZapLogger) Tracef(format string, args ...interface{}) + func (l *ZapLogger) Warn(args ...interface{}) + func (l *ZapLogger) Warnf(format string, args ...interface{}) + func (l *ZapLogger) WithFields(fields map[string]interface{}) log.Logger + func (l *ZapLogger) WithPrefix(prefix string) log.Logger