Versions in this module Expand all Collapse all v3 v3.0.7 Jul 18, 2022 Changes in this version + var BigEndian bigEndian + var Crc32_Table = []uint32 + var LittleEndian littleEndian + func AddWriter(wn io.Writer) + func BigLittleSwap(v uint) uint + func ByteToUint32(data []byte, bigEndian bool) (ret uint32, err error) + func ByteToUint32N(data []byte) (ret uint32, err error) + func ByteToUint64N(data []byte) (ret uint64, err error) + func CORS(w http.ResponseWriter, r *http.Request) + func CurrentDir(path ...string) string + func Exist(filename string) bool + func GetFillBytes(data byte, n int) []byte + func GetPCR(v uint64) uint64 + func GetPtsDts(v uint64) uint64 + func GetSlice(s int) []byte + func GetUev(buff []byte, start int) (value int, pos int) + func ListenAddrs(addr, addTLS, cert, key string, handler http.Handler) + func ListenTCP(addr string, process func(net.Conn)) error + func ListenUDP(address string, networkBuffer int) (*net.UDPConn, error) + func MayBeError(info error) (hasError bool) + func Print(v ...interface{}) + func Printf(format string, v ...interface{}) + func Println(v ...interface{}) + func PutPCR(pcr uint64) uint64 + func PutPtsDts(v uint64) uint64 + func ReadByteToUint16(r io.Reader, bigEndian bool) (data uint16, err error) + func ReadByteToUint24(r io.Reader, bigEndian bool) (data uint32, err error) + func ReadByteToUint32(r io.Reader, bigEndian bool) (data uint32, err error) + func ReadByteToUint40(r io.Reader, bigEndian bool) (data uint64, err error) + func ReadByteToUint48(r io.Reader, bigEndian bool) (data uint64, err error) + func ReadByteToUint64(r io.Reader, bigEndian bool) (data uint64, err error) + func ReadByteToUint8(r io.Reader) (data uint8, err error) + func ReadFileLines(filename string) (lines []string, err error) + func RecycleSlice(slice []byte) + func ToFloat64(num interface{}) float64 + func Uint32ToByte(data uint32, bigEndian bool) (ret []byte, err error) + func WriteUint16ToByte(w io.Writer, data uint16, bigEndian bool) error + func WriteUint24ToByte(w io.Writer, data uint32, bigEndian bool) error + func WriteUint32ToByte(w io.Writer, data uint32, bigEndian bool) error + func WriteUint40ToByte(w io.Writer, data uint64, bigEndian bool) error + func WriteUint48ToByte(w io.Writer, data uint64, bigEndian bool) error + func WriteUint64ToByte(w io.Writer, data uint64, bigEndian bool) error + func WriteUint8ToByte(w io.Writer, data uint8) error + type Crc32Reader struct + Crc32 uint32 + R io.Reader + func (cr *Crc32Reader) Read(b []byte) (n int, err error) + func (cr *Crc32Reader) ReadCrc32UIntAndCheck() (err error) + type Crc32Writer struct + Crc32 uint32 + W io.Writer + func (wr *Crc32Writer) Write(b []byte) (n int, err error) + type Event struct + Label string + Level int + Tag string + Timestamp time.Time + type EventContext struct + EventChan chan *Event + Name string + type IOVec struct + Data [][]byte + Length int + func (iov *IOVec) Append(b []byte) + func (iov *IOVec) WriteTo(w io.Writer, n int) (written int, err error) + type IOVecWriter struct + func NewIOVecWriter(w io.Writer) (iow *IOVecWriter) + func (iow *IOVecWriter) Flush() error + func (iow *IOVecWriter) Write(data []byte) (written int, err error) + type MultiLogWriter struct + type SSE struct + func NewSSE(w http.ResponseWriter, ctx context.Context) *SSE + func (sse *SSE) Write(data []byte) (n int, err error) + func (sse *SSE) WriteEvent(event string, data []byte) (err error) + func (sse *SSE) WriteExec(cmd *exec.Cmd) error + func (sse *SSE) WriteJSON(data interface{}) error + type SysIOVec struct + Base uintptr + Length uint64