Documentation ¶
Index ¶
- func AppendByte(size int) []byte
- func ByteReverse(buff []byte) []byte
- func CheckError(err error)
- func ConvertAsciiToByte(ascii uint8) byte
- func ConvertBits2Byte(data string) byte
- func ConvertBits2Bytes(data string) []byte
- func ConvertBool2Byte(boolValue bool) byte
- func ConvertByte2Bits(data byte) string
- func ConvertByte2BitsString(data byte) []string
- func ConvertBytes2BitStrings(data []byte) []string
- func ConvertInt2Bytes(i int32) []byte
- func ConvertInt3Bytes(i int32) []byte
- func ConvertInt4Bytes(i int32) []byte
- func ConvertLong8Bytes(i int64) []byte
- func ConvertString2Byte(data string) byte
- func ConvertStringArrays2Bytes(data []string) []byte
- func ConvertStringArrays2BytesArrays(bitString []string) []byte
- func ConvertUInt2Bytes(i uint16) []byte
- func ConvertUInt4Bytes(i uint32) []byte
- func ConvertULong8Bytes(i uint64) []byte
- func ConvertValueOfBitsInBytes(byte byte, index int, value int) byte
- func CreateDataBaseDir(Path string, folderName string) bool
- func CreateFile(filePath string, fileName string) error
- func CreateFileBySize(filePath string, fileName string, size int64) error
- func CreateFileWithPath(filePath string) error
- func GetBytes(key interface{}) ([]byte, error)
- func GetDBRowId()
- func GetLength(length int64) int
- func GetLengthBytes(buff []byte) int
- func GetPassword(pass []byte, seed []byte, restOfScrambleBuff []byte) []byte
- func GetRollPointer()
- func GetTrxId()
- func Goid() int
- func HashCode(key []byte) uint64
- func IsNil(i interface{}) bool
- func LeftPaddleBitString(bitstring string, leftPaddleSize int) byte
- func ListFileDirByPath(path string) map[string]string
- func Log(v ...interface{})
- func LogDebug(v ...interface{})
- func LogErr(v ...interface{})
- func PathExists(path string) (bool, error)
- func RandomBytes(size int) []byte
- func ReadBitSet(buff []byte, cursor int, length int, bigEndian bool) (int, []int)
- func ReadByte(buff []byte, cursor int) (int, byte)
- func ReadBytes(buff []byte, cursor int, offset int) (int, []byte)
- func ReadBytesByIndexBit(byte byte, index int) string
- func ReadBytesByIndexBitByStart(byte byte, start int, end int) string
- func ReadBytesWithNull(buff []byte, cursor int) (int, []byte)
- func ReadFileBySeekStart(filePath string, offset uint64) []byte
- func ReadFileBySeekStartWithSize(filePath string, offset uint64, size int) []byte
- func ReadFileContent(filepath string, fileName string) ([]byte, error)
- func ReadLength(buff []byte, cursor int) (int, uint64)
- func ReadLengthString(buff []byte, cursor int) (int, string)
- func ReadString(buff []byte, cursor int) (int, string)
- func ReadStringWithNull(buff []byte, cursor int) (int, string)
- func ReadUB2(buff []byte, cursor int) (int, uint16)
- func ReadUB2Byte2Int(buff []byte) uint16
- func ReadUB3(buff []byte, cursor int) (int, uint32)
- func ReadUB4(buff []byte, cursor int) (int, uint32)
- func ReadUB4Byte2Int(buff []byte) int
- func ReadUB4Byte2UInt32(buff []byte) uint32
- func ReadUB4ByteInt(buff [4]byte) int
- func ReadUB6(buff []byte, cursor int) (int, uint64)
- func ReadUB8(buff []byte, cursor int) (int, uint64)
- func ReadUB8Byte2Long(buff []byte) uint64
- func ReadUB8Bytes2Long(buff []byte) int64
- func ReadUB8Long(buff []byte, cursor int) (int, int64)
- func ReadWithNull(buff []byte, cursor int) (int, []byte)
- func StringArrays2Bytes(values []string) []byte
- func Substr(str string, start int, end int) string
- func ToBinaryString(data byte) string
- func TrimLeftPaddleBitString(bitData byte, leftPaddleStart int) []string
- func WriteBitsByStart(byte byte, bitsString []string, start int, end int) string
- func WriteByte(buf []byte, b byte) []byte
- func WriteBytes(buf []byte, from []byte) []byte
- func WriteErrorLog(log string)
- func WriteFileBySeekStart(filePath string, offset uint64, data []byte)
- func WriteInt32WithNull(buf []byte, data uint32) []byte
- func WriteLength(buf []byte, length int64) []byte
- func WriteNoticeLog(log string)
- func WriteToFileByAppendBytes(filepath string, fileName string, content []byte)
- func WriteUB2(buf []byte, i uint16) []byte
- func WriteUB3(buf []byte, i uint32) []byte
- func WriteUB4(buf []byte, i uint32) []byte
- func WriteUB6(buf []byte, i uint64) []byte
- func WriteUB8(buf []byte, i uint64) []byte
- func WriteWithLength(buf []byte, from []byte) []byte
- func WriteWithLengthWithNullValue(buf []byte, from []byte, nullValue byte) []byte
- func WriteWithNull(buf []byte, from []byte) []byte
- type IniParser
- func (this *IniParser) GetFloat32(section string, key string) float32
- func (this *IniParser) GetFloat64(section string, key string) float64
- func (this *IniParser) GetInt32(section string, key string) int32
- func (this *IniParser) GetInt64(section string, key string) int64
- func (this *IniParser) GetString(section string, key string) string
- func (this *IniParser) GetUint32(section string, key string) uint32
- func (this *IniParser) GetUint64(section string, key string) uint64
- func (this *IniParser) Load(config_file_name string) error
- type IniParserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendByte ¶
func ByteReverse ¶
func CheckError ¶
func CheckError(err error)
func ConvertAsciiToByte ¶
func ConvertBits2Byte ¶
func ConvertBits2Bytes ¶
func ConvertBool2Byte ¶
func ConvertByte2Bits ¶
func ConvertByte2BitsString ¶
func ConvertBytes2BitStrings ¶
注意BigEndian和littleEndian
func ConvertInt2Bytes ¶
func ConvertInt3Bytes ¶
func ConvertInt4Bytes ¶
func ConvertLong8Bytes ¶
func ConvertString2Byte ¶
func ConvertUInt2Bytes ¶
func ConvertUInt4Bytes ¶
func ConvertULong8Bytes ¶
func ConvertValueOfBitsInBytes ¶
将某个字节的第几位bit置换,value0,1
func CreateDataBaseDir ¶
func CreateFile ¶
func CreateFileWithPath ¶
func GetLengthBytes ¶
func GetPassword ¶
stage1_hash = SHA1(password), using the password that the user has entered. token = SHA1(SHA1(stage1_hash), scramble) XOR stage1_hash
func GetRollPointer ¶
func GetRollPointer()
func LeftPaddleBitString ¶
func ListFileDirByPath ¶
func PathExists ¶
func RandomBytes ¶
func ReadBytesByIndexBit ¶
func ReadFileBySeekStart ¶
func ReadUB2Byte2Int ¶
func ReadUB4Byte2Int ¶
func ReadUB4Byte2UInt32 ¶
func ReadUB4ByteInt ¶
func ReadUB8Byte2Long ¶
func ReadUB8Bytes2Long ¶
func StringArrays2Bytes ¶
func ToBinaryString ¶
func TrimLeftPaddleBitString ¶
func WriteBitsByStart ¶
func WriteBytes ¶
func WriteErrorLog ¶
func WriteErrorLog(log string)
func WriteFileBySeekStart ¶
func WriteInt32WithNull ¶
func WriteLength ¶
func WriteNoticeLog ¶
func WriteNoticeLog(log string)
func WriteWithLength ¶
func WriteWithNull ¶
Types ¶
type IniParser ¶
type IniParser struct {
// contains filtered or unexported fields
}
func (*IniParser) GetFloat32 ¶
func (*IniParser) GetFloat64 ¶
type IniParserError ¶
type IniParserError struct {
// contains filtered or unexported fields
}
func (*IniParserError) Error ¶
func (e *IniParserError) Error() string
Click to show internal directories.
Click to hide internal directories.