Documentation
¶
Index ¶
Constants ¶
const ( INITIAL_SIZE = int64(128) MAX_SIZE = 1 << 63 HASH_siphash = 0x01 HASH_FNV32A = 0x02 HASH_FNV64A = 0x03 )
Variables ¶
var HASHER = HASH_siphash
var SALT [16]byte
Functions ¶
This section is empty.
Types ¶
type DickEntry ¶
type DickEntry struct {
// contains filtered or unexported fields
}
func NewDickEntry ¶
NewDickEntry creates a new DickEntry with the given key and value.
Parameters: - key: a string representing the key of the entry. - value: an interface{} representing the value of the entry.
Returns: - *DickEntry: a pointer to the newly created DickEntry.
type DickTable ¶
type DickTable struct {
// contains filtered or unexported fields
}
func NewDickTable ¶
NewDickTable creates a new DickTable with the specified size.
Parameters: - size: the size of the DickTable.
Returns: - *DickTable: a pointer to the newly created DickTable.
type XDICK ¶
func NewXDICK ¶
NewXDICK returns a new instance of XDICK.
The function does not take any parameters. It returns a pointer to XDICK.
func (*XDICK) Del ¶
Delete deletes an entry from the dictionary.
Parameters: - key: the key of the entry to be deleted.
Returns: - error: if the entry is not found.
func (*XDICK) GenerateSALT ¶
func (d *XDICK) GenerateSALT()
GenerateSALT generates a fixed slice of 16 maybe NOT really random bytes