Objects/hash_def

Search:
Group by:
Source   Edit  

this is splited for stringobject to use

Types

PyHash_FuncDef = object
  hash*: proc (p: pointer; n: int): Hash {....raises: [].} ## like std/hashes.hashData. 
                                                        ## Just like in CPython, only Py_HashBuffer (for str/bytes/bytearray) uses this
  name*: cstring
  hash_bits*, seed_bits*: int
hash function definition Source   Edit  

Consts

IMAG = 1000003
Source   Edit  
INF = 8097959573708832761
Source   Edit  
MULTIPLIER = 1000003
Source   Edit  
Py_SupHashBuffer = true
Source   Edit  

Procs

proc Py_HashBuffer(p: pointer; n: int): Hash {....raises: [], tags: [RootEffect],
    forbids: [].}
Source   Edit  
proc Py_HashBuffer[T](p: openArray[T]): Hash
Source   Edit  
proc PyHash_GetFuncDef(): PyHash_FuncDef {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc PyHash_SetFuncDef(x: PyHash_FuncDef) {....raises: [], tags: [], forbids: [].}
Source   Edit