Documentation ¶
Index ¶
- Variables
- 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
- type Crc32Writer
- type IOVec
- type IOVecWriter
- type SSE
- type SysIOVec
Constants ¶
This section is empty.
Variables ¶
View Source
var BigEndian bigEndian
BigEndian is the big-endian implementation of ByteOrder.
View Source
var Crc32_Table = []uint32{}/* 256 elements not displayed */
View Source
var LittleEndian littleEndian
Functions ¶
func BigLittleSwap ¶
func ByteToUint32 ¶
千万注意大小端,RTMP是大端
func CurrentDir ¶
func GetFillBytes ¶
func ReadFileLines ¶
Types ¶
type Crc32Reader ¶
func (*Crc32Reader) ReadCrc32UIntAndCheck ¶
func (cr *Crc32Reader) ReadCrc32UIntAndCheck() (err error)
type Crc32Writer ¶
type IOVecWriter ¶
type IOVecWriter struct {
// contains filtered or unexported fields
}
func NewIOVecWriter ¶
func NewIOVecWriter(w io.Writer) (iow *IOVecWriter)
func (*IOVecWriter) Flush ¶
func (iow *IOVecWriter) Flush() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.