Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IndexBlockLength IndexBlock长度 IndexBlockLength int64 = 12 // SuperBlockLength 超级块的长度 SuperBlockLength int64 = 8 // TotalHeaderLength TotalHeader 长度 16k,可以存储2048个index particon TotalHeaderLength int64 = 1024 * 16 // DataStartPos 数据开始的位置 DataStartPos int64 = SuperBlockLength + TotalHeaderLength )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IP4Region ¶
type IP4Region struct {
// contains filtered or unexported fields
}
IP4Region ip4region的结构体
func (*IP4Region) BinarySearch ¶
BinarySearch 使用二分法进行搜索
func (*IP4Region) BtreeSearch ¶
BtreeSearch 使用btree的方法进行搜索
Click to show internal directories.
Click to hide internal directories.