Documentation ¶
Index ¶
- Constants
- type BigU32
- type BigU32s
- type Bit1024
- func (b Bit1024) And(c Bit1024) Bit1024
- func (b Bit1024) Equal(c Bit1024) bool
- func (b Bit1024) GetNAsI16(n int) []int16
- func (b Bit1024) GetNAsI32(n int) []int32
- func (b Bit1024) GetNAsI64(n int) []int64
- func (b Bit1024) IterAsI16(s []int16, pos int, add int16, n int) int
- func (b Bit1024) IterAsI32(s []int32, pos int, add int32, n int) int
- func (b Bit1024) IterAsI64(s []int64, pos int, add int64, n int) int
- func (b Bit1024) IterAsU32(s []uint32, pos int, add uint32, n int) int
- func (b Bit1024) Len() int
- func (b Bit1024) Marshal() []byte
- func (b Bit1024) NLen() int
- func (b Bit1024) Or(c Bit1024) Bit1024
- func (b Bit1024) OrThenReverse(c Bit1024) Bit1024
- func (b Bit1024) RGetNAsI16(n int) []int16
- func (b Bit1024) RGetNAsI32(n int) []int32
- func (b Bit1024) RGetNAsI64(n int) []int64
- func (b Bit1024) RIterAsI16(s []int16, pos int, add int16, n int) int
- func (b Bit1024) RIterAsI32(s []int32, pos int, add int32, n int) int
- func (b Bit1024) RIterAsI64(s []int64, pos int, add int64, n int) int
- func (b Bit1024) RIterAsU32(s []uint32, pos int, add uint32, n int) int
- func (b Bit1024) Reverse() Bit1024
- func (b Bit1024) SetI16(i int16)
- func (b Bit1024) SetI32(i int32)
- func (b Bit1024) Unmarshal(buf []byte) error
- func (b Bit1024) UnsetI16(i int16)
- func (b Bit1024) UnsetI32(i int32)
- type Bit64
- type U32BitTip
- func (b *U32BitTip) GetNAsU32(n int) []uint32
- func (b *U32BitTip) IterAsU32(s []uint32, pos int, n int) int
- func (b *U32BitTip) RGetNAsU32(n int) []uint32
- func (b *U32BitTip) RIterAsU32(s []uint32, pos int, n int) int
- func (b *U32BitTip) Reverse() *U32BitTip
- func (b *U32BitTip) SetU32(u32 uint32) error
- type U32BitTips
Constants ¶
const ( L16 = 16 B64 = 64 L128 = 128 )
const (
C1K = 1024
)
const (
MaxU32TipStart uint32 = math.MaxUint32 / C1K
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigU32 ¶
BigU32 combine uint32 and 1024
func NewBigU32FromData ¶
NewBigU32FromData : new big u32 from uint32 and []byte
func NewBigU32FromI64 ¶
NewBigU32FromI64 : new big u32 from int64
func (*BigU32) GetNAsI64 ¶
GetNAsI64 : iterate bitmap input: n -- iter count return: actually iter list
func (*BigU32) IterAsI64 ¶
IterAsI64 : iterate bitmap input: s -- an int64 array, pos -- slice position, n -- iter count return: actually iter count
func (*BigU32) RGetNAsI64 ¶
RGetNAsI64 : reverse iterate bitmap input: n -- iter count return: actually iter list
func (*BigU32) RIterAsI64 ¶
RIterAsI64 : reverse iterate bitmap input: s -- an int64 array, pos -- slice position, n -- iter count return: actually iter count
type BigU32s ¶
type BigU32s []*BigU32
BigU32s BigU32 list
func (BigU32s) GetNAsI64 ¶
GetNAsI64 : iterate bitmap input: n -- iter count return: actually iter list
func (BigU32s) RGetNAsI64 ¶
RGetNAsI64 : reverse iterate bitmap input: n -- iter count return: actually iter list
type Bit1024 ¶
type Bit1024 []Bit64
Bit1024 : 16*8 = 128bytes
func (Bit1024) GetNAsI16 ¶
GetNAsI16 : iterate bitmap input: n -- iter count return: actually iter list
func (Bit1024) GetNAsI32 ¶
GetNAsI32 : iterate bitmap input: n -- iter count return: actually iter list
func (Bit1024) GetNAsI64 ¶
GetNAsI64 : iterate bitmap input: n -- iter count return: actually iter list
func (Bit1024) IterAsI16 ¶
IterAsI16 : iterate bitmap input: s -- an int32 array, add -- added number, n -- iter count return: actually iter count
func (Bit1024) IterAsI32 ¶
IterAsI32 : iterate bitmap input: s -- an int32 array, add -- added number, n -- iter count return: actually iter count
func (Bit1024) IterAsI64 ¶
IterAsI64 : iterate bitmap input: s -- an int64 array, add -- added number, n -- iter count return: actually iter count
func (Bit1024) IterAsU32 ¶
IterAsU32 : iterate bitmap input: s -- an uint32 array, add -- added number, n -- iter count return: actually iter count
func (Bit1024) OrThenReverse ¶
OrThenReverse : or operation then reverse
func (Bit1024) RGetNAsI16 ¶
RGetNAsI16 : reverse iterate bitmap input: n -- iter count return: actually iter list
func (Bit1024) RGetNAsI32 ¶
RGetNAsI32 : reverse iterate bitmap input: n -- iter count return: actually iter list
func (Bit1024) RGetNAsI64 ¶
RGetNAsI64 : reverse iterate bitmap input: n -- iter count return: actually iter list
func (Bit1024) RIterAsI16 ¶
RIterAsI16 : reverse iterate bitmap input: s -- an int32 array, add -- added number, n -- iter count return: actually iter count
func (Bit1024) RIterAsI32 ¶
RIterAsI32 : reverse iterate bitmap input: s -- an int32 array, add -- added number, n -- iter count return: actually iter count
func (Bit1024) RIterAsI64 ¶
RIterAsI64 : reverse iterate bitmap input: s -- an int64 array, add -- added number, n -- iter count return: actually iter count
func (Bit1024) RIterAsU32 ¶
RIterAsU32 : reverse iterate bitmap input: s -- an uint32 array, add -- added number, n -- iter count return: actually iter count
type U32BitTip ¶
U32BitTip combine uint32 and 1024
func NewU32BitTipFromData ¶
NewU32BitTipFromData : new big u32 from uint32 and []byte
func NewU32BitTipFromU32 ¶
NewU32BitTipFromU32 : new u32 bit tip from uint32
func (*U32BitTip) GetNAsU32 ¶ added in v0.3.1
GetNAsU32 : iterate bitmap input: n -- iter count return: actually iter list
func (*U32BitTip) IterAsU32 ¶
IterAsU32 : iterate bitmap input: s -- an uint32 array, pos -- slice position, n -- iter count return: actually iter count
func (*U32BitTip) RGetNAsU32 ¶ added in v0.3.1
RGetNAsU32 : reverse iterate bitmap input: n -- iter count return: actually iter list
func (*U32BitTip) RIterAsU32 ¶
RIterAsU32 : reverse iterate bitmap input: s -- an uint32 array, pos -- slice position, n -- iter count return: actually iter count
type U32BitTips ¶
type U32BitTips []*U32BitTip
U32BitTips U32BitTip list
func (U32BitTips) GetNAsU32 ¶
func (b U32BitTips) GetNAsU32(n int) []uint32
GetNAsU32 : iterate bitmap input: n -- iter count return: actually iter list
func (U32BitTips) RGetNAsU32 ¶
func (b U32BitTips) RGetNAsU32(n int) []uint32
RGetNAsU32 : reverse iterate bitmap input: n -- iter count return: actually iter list
func (U32BitTips) Reverse ¶
func (b U32BitTips) Reverse() U32BitTips
Reverse : clone and reverse bit