Versions in this module Expand all Collapse all v0 v0.0.1 Dec 21, 2022 Changes in this version + func AppendUUID(dst []byte, uuid []byte) []byte + func CalculateImageResourceId(md5 []byte) string + func GZipCompress(data []byte) []byte + func GZipUncompress(src []byte) []byte + func GenUUID(uuid []byte) []byte + func NewWriterF(f func(writer *Writer)) []byte + func OpenWriterF(f func(*Writer)) (b []byte, cl func()) + func PutWriter(w *Writer) + func ReleaseGzipWriter(w *GzipWriter) + func ToBytes(i any) []byte + func UInt32ToIPV4Address(i uint32) string + func ZlibCompress(data []byte) []byte + func ZlibUncompress(src []byte) []byte + type GzipWriter struct + func AcquireGzipWriter() *GzipWriter + func (w *GzipWriter) Bytes() []byte + func (w *GzipWriter) Close() error + func (w *GzipWriter) Write(p []byte) (int, error) + type NetworkReader struct + func NewNetworkReader(conn net.Conn) *NetworkReader + func (r *NetworkReader) ReadByte() (byte, error) + func (r *NetworkReader) ReadBytes(len int) ([]byte, error) + func (r *NetworkReader) ReadInt32() (int32, error) + type Reader struct + func NewReader(data []byte) *Reader + func (r *Reader) Index() int64 + func (r *Reader) Len() int + func (r *Reader) ReadAvailable() []byte + func (r *Reader) ReadByte() byte + func (r *Reader) ReadBytes(len int) []byte + func (r *Reader) ReadBytesShort() []byte + func (r *Reader) ReadInt32() int32 + func (r *Reader) ReadInt32Bytes() []byte + func (r *Reader) ReadInt64() int64 + func (r *Reader) ReadString() string + func (r *Reader) ReadStringLimit(limit int) string + func (r *Reader) ReadStringShort() string + func (r *Reader) ReadTlvMap(tagSize int) (m TlvMap) + func (r *Reader) ReadUInt16() uint16 + type TEA [4]uint32 + func NewTeaCipher(key []byte) (t TEA) + func (t TEA) Decrypt(data []byte) []byte + func (t TEA) Encrypt(src []byte) (dst []byte) + type TlvMap map[uint16][]byte + func (tlv TlvMap) Exists(key uint16) bool + type Writer bytes.Buffer + func SelectWriter() *Writer + func (w *Writer) Bytes() []byte + func (w *Writer) EncryptAndWrite(key []byte, data []byte) + func (w *Writer) FillUInt16() (pos int) + func (w *Writer) FillUInt32() (pos int) + func (w *Writer) Grow(n int) + func (w *Writer) Len() int + func (w *Writer) Reset() + func (w *Writer) Write(b []byte) + func (w *Writer) WriteBool(b bool) + func (w *Writer) WriteByte(b byte) + func (w *Writer) WriteBytesShort(data []byte) + func (w *Writer) WriteHex(h string) + func (w *Writer) WriteIntLvPacket(offset int, f func(*Writer)) + func (w *Writer) WriteString(v string) + func (w *Writer) WriteStringShort(v string) + func (w *Writer) WriteTlvLimitedSize(data []byte, limit int) + func (w *Writer) WriteUInt16(v uint16) + func (w *Writer) WriteUInt16At(pos int, v uint16) + func (w *Writer) WriteUInt32(v uint32) + func (w *Writer) WriteUInt32At(pos int, v uint32) + func (w *Writer) WriteUInt64(v uint64)