Versions in this module Expand all Collapse all v2 v2.1.8 Aug 5, 2020 Changes in this version + var BigEndian bigEndian + var Crc32_Table = []uint32 + var LittleEndian littleEndian + 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 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 GetUev(buff []byte, start int) (value int, pos int) + 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 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 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 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{}) (err error) + type SysIOVec struct + Base uintptr + Length uint64