package
1.3.5
Repository: https://github.com/didi/sharingan.git
Documentation: pkg.go.dev

# Functions

GetIntLenc 获取Length-Encoded-Integer的值 第二个返回值表示编码int相关的所有字节的长度 doc: https://dev.mysql.com/doc/internals/en/integer.html#fixed-length-integer.
GetIntN 获取fixedInteger int<N>的值 doc: https://dev.mysql.com/doc/internals/en/integer.html#fixed-length-integer.
GetLenencInt 获取Length-Encoded-Integer的值 返回值第二个int表示编码该int总共的字节数.
GetLenencString 获取length-encoded-string的值 doc: https://dev.mysql.com/doc/internals/en/string.html#packet-Protocol::LengthEncodedString.
GetLenencStringLength 根据string值判断该值编码成lenencstr要占多少字节.
GetPacketHeader 获取pakcet头,简便方法,返回值第一个是payload长度,第二个是seqID.
GetStringFixed 读取固定长度的string.
GetStringNull 读取string直到遇到NULL.
IsEOFPacket 判断是否是EOF包,使用Peek不消费字节,可重复使用.
ReadEOFPacket 读取一个EOF包,如果读取成功则返回true(会消费字节).
ReadNULPacket 读取string[NUL]及0x00的index doc: https://dev.mysql.com/doc/internals/en/string.html#packet-Protocol::NulTerminatedString.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
COM_UNKNOWN 额外声明用来表示错误的类型.
NULL 结果集中如果某个字段是NULL,用0xfe表示.

# Type aliases

No description provided by the author