Documentation
¶
Index ¶
- Variables
- func Duration(ms int) time.Duration
- type BitFactory
- func (BitFactory) And(v, r uint) uint
- func (BitFactory) Count(v uint) int
- func (BitFactory) Left(v, r uint) uint
- func (BitFactory) Left16(v, r uint16) uint16
- func (BitFactory) Left32(v, r uint32) uint32
- func (BitFactory) Left64(v, r uint64) uint64
- func (BitFactory) Left8(v, r uint8) uint8
- func (BitFactory) Not(v uint) uint
- func (BitFactory) Or(v, r uint) uint
- func (BitFactory) Reverse(v uint) uint
- func (BitFactory) Reverse16(v uint16) uint16
- func (BitFactory) Reverse32(v uint32) uint32
- func (BitFactory) Reverse64(v uint64) uint64
- func (BitFactory) Reverse8(v uint8) uint8
- func (BitFactory) Right(v, r uint) uint
- func (BitFactory) Right16(v, r uint16) uint16
- func (BitFactory) Right32(v, r uint) uint
- func (BitFactory) Right64(v, r uint64) uint64
- func (BitFactory) Right8(v, r uint8) uint8
- func (BitFactory) RotateLeft(v uint, k int) uint
- func (BitFactory) RotateLeft16(v uint16, k int) uint16
- func (BitFactory) RotateLeft32(v uint32, k int) uint32
- func (BitFactory) RotateLeft64(v uint64, k int) uint64
- func (BitFactory) RotateLeft8(v uint8, k int) uint8
- func (BitFactory) Size() int
- func (BitFactory) Test(v, r uint) bool
- func (BitFactory) Xor(v, r uint) uint
- type Buffer
- func (b Buffer) Clone(args ...int) Buffer
- func (b Buffer) Concat(src ...Buffer) Buffer
- func (b Buffer) Copy(src Buffer, args ...int) int
- func (b Buffer) Equal(buf Buffer) bool
- func (b Buffer) Index(L *luar.LState) int
- func (b Buffer) IndexAny(str string) int
- func (b Buffer) IndexByte(val int) int
- func (b Buffer) IndexString(str string) int
- func (b Buffer) Last(L *luar.LState) int
- func (b Buffer) LastAny(str string) int
- func (b Buffer) LastByte(val int) int
- func (b Buffer) LastString(str string) int
- func (b Buffer) Peek(i int) Buffer
- func (b Buffer) Reverse(args ...int) Buffer
- func (b Buffer) Slice(args ...int) Buffer
- func (b Buffer) Split(L *luar.LState) int
- func (b Buffer) String() string
- func (b Buffer) ToChar(args ...int) int
- func (b Buffer) ToHash(args ...string) uint64
- func (b Buffer) ToLine(args ...int) string
- func (b Buffer) ToNumber(args ...int) uint64
- func (b Buffer) ToString(args ...string) string
- type BufferFactory
- type Ticker
- type TimeFactory
- func (TimeFactory) After(s int, callback func()) *Timer
- func (TimeFactory) Date(args ...int) time.Time
- func (TimeFactory) Format(layout string) string
- func (TimeFactory) Now() time.Time
- func (TimeFactory) Parse(layout, value string) (time.Time, error)
- func (f TimeFactory) ParseUnix(layout, value string) int64
- func (f TimeFactory) ParseUnixNano(layout, value string) int64
- func (TimeFactory) Sleep(s int)
- func (TimeFactory) Ticker(s int) *Ticker
- func (TimeFactory) Time(args ...int) time.Time
- func (TimeFactory) Timer(s int) *Timer
- func (TimeFactory) Unix() int64
- func (TimeFactory) UnixNano() int64
- func (TimeFactory) Zero() time.Time
- type Timer
Constants ¶
This section is empty.
Variables ¶
View Source
var EncodeTable = map[string]func(Buffer) string{
"raw": __rawString,
"utf8": __rawString,
"HEX": __HEXString,
"hex": __hexString,
"BCD": __BCDString,
"bcd": __bcdString,
"base32": __base32String,
"base64": __base64String,
"gbk": __gbkString,
"gb18030": __gb18030String,
"md5": __md5String,
"MD5": __MD5String,
"sha1": __sha1String,
"SHA1": __SHA1String,
}
View Source
var HashTable = map[string]func(Buffer) uint64{
"checksum8": __hashChecksum8,
"checksum16": __hashChecksum16,
"checksum32": __hashChecksum32,
"checksum64": __hashChecksum64,
"crc32": __hashCrc32,
"crc64": __hashCrc64ISO,
"crc64.iso": __hashCrc64ISO,
"crc64.ecma": __hashCrc64ECMA,
}
Functions ¶
Types ¶
type BitFactory ¶
type BitFactory struct{}
func (BitFactory) And ¶
func (BitFactory) And(v, r uint) uint
func (BitFactory) Count ¶ added in v1.0.5
func (BitFactory) Count(v uint) int
func (BitFactory) Left ¶
func (BitFactory) Left(v, r uint) uint
func (BitFactory) Left16 ¶ added in v1.0.5
func (BitFactory) Left16(v, r uint16) uint16
func (BitFactory) Left32 ¶ added in v1.0.5
func (BitFactory) Left32(v, r uint32) uint32
func (BitFactory) Left64 ¶ added in v1.0.5
func (BitFactory) Left64(v, r uint64) uint64
func (BitFactory) Left8 ¶ added in v1.0.5
func (BitFactory) Left8(v, r uint8) uint8
func (BitFactory) Not ¶
func (BitFactory) Not(v uint) uint
func (BitFactory) Or ¶
func (BitFactory) Or(v, r uint) uint
func (BitFactory) Reverse ¶ added in v1.0.5
func (BitFactory) Reverse(v uint) uint
func (BitFactory) Reverse16 ¶ added in v1.0.5
func (BitFactory) Reverse16(v uint16) uint16
func (BitFactory) Reverse32 ¶ added in v1.0.5
func (BitFactory) Reverse32(v uint32) uint32
func (BitFactory) Reverse64 ¶ added in v1.0.5
func (BitFactory) Reverse64(v uint64) uint64
func (BitFactory) Reverse8 ¶ added in v1.0.5
func (BitFactory) Reverse8(v uint8) uint8
func (BitFactory) Right ¶
func (BitFactory) Right(v, r uint) uint
func (BitFactory) Right16 ¶ added in v1.0.5
func (BitFactory) Right16(v, r uint16) uint16
func (BitFactory) Right32 ¶ added in v1.0.5
func (BitFactory) Right32(v, r uint) uint
func (BitFactory) Right64 ¶ added in v1.0.5
func (BitFactory) Right64(v, r uint64) uint64
func (BitFactory) Right8 ¶ added in v1.0.5
func (BitFactory) Right8(v, r uint8) uint8
func (BitFactory) RotateLeft ¶ added in v1.0.5
func (BitFactory) RotateLeft(v uint, k int) uint
func (BitFactory) RotateLeft16 ¶ added in v1.0.5
func (BitFactory) RotateLeft16(v uint16, k int) uint16
func (BitFactory) RotateLeft32 ¶ added in v1.0.5
func (BitFactory) RotateLeft32(v uint32, k int) uint32
func (BitFactory) RotateLeft64 ¶ added in v1.0.5
func (BitFactory) RotateLeft64(v uint64, k int) uint64
func (BitFactory) RotateLeft8 ¶ added in v1.0.5
func (BitFactory) RotateLeft8(v uint8, k int) uint8
func (BitFactory) Size ¶ added in v1.0.5
func (BitFactory) Size() int
func (BitFactory) Test ¶ added in v1.0.3
func (BitFactory) Test(v, r uint) bool
func (BitFactory) Xor ¶
func (BitFactory) Xor(v, r uint) uint
type BufferFactory ¶
type BufferFactory struct{}
func (BufferFactory) FormNumber ¶ added in v1.0.2
func (BufferFactory) FormNumber(val ...int) Buffer
func (BufferFactory) FormString ¶
func (BufferFactory) FormString(val ...string) Buffer
func (BufferFactory) New ¶
func (f BufferFactory) New(length int) Buffer
type TimeFactory ¶
type TimeFactory struct{}
func (TimeFactory) After ¶
func (TimeFactory) After(s int, callback func()) *Timer
func (TimeFactory) Format ¶
func (TimeFactory) Format(layout string) string
func (TimeFactory) Now ¶
func (TimeFactory) Now() time.Time
func (TimeFactory) ParseUnix ¶ added in v1.0.6
func (f TimeFactory) ParseUnix(layout, value string) int64
func (TimeFactory) ParseUnixNano ¶ added in v1.0.6
func (f TimeFactory) ParseUnixNano(layout, value string) int64
func (TimeFactory) Sleep ¶
func (TimeFactory) Sleep(s int)
func (TimeFactory) Ticker ¶
func (TimeFactory) Ticker(s int) *Ticker
func (TimeFactory) Timer ¶
func (TimeFactory) Timer(s int) *Timer
func (TimeFactory) Unix ¶
func (TimeFactory) Unix() int64
func (TimeFactory) UnixNano ¶
func (TimeFactory) UnixNano() int64
func (TimeFactory) Zero ¶
func (TimeFactory) Zero() time.Time
Click to show internal directories.
Click to hide internal directories.