Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringStringMap ¶
StringStringMap returns the accumulated identity of m.
Types ¶
type Accumulator ¶
type Accumulator uint64
Accumulator is a commutative folding accumulator.
func NewAccumulator ¶
func NewAccumulator() Accumulator
NewAccumulator creates a new Accumulator with a default seed value.
n.b. Here and elsewhere, we use nosplit to avoid stack size checks, which
are unnecessary as memory width is bounded to each instance of `a` (a uint64) and, potentially, a single stack-local loop temporary while iterating.
func NewAccumulatorWithSeed ¶
func NewAccumulatorWithSeed(seed uint64) Accumulator
NewAccumulatorWithSeed creates a new Accumulator with the provided seed value.
func (Accumulator) AddString ¶
func (a Accumulator) AddString(str string) Accumulator
AddString hashes str and folds it into the accumulator.
func (Accumulator) AddUint64 ¶
func (a Accumulator) AddUint64(u64 uint64) Accumulator
AddUint64 folds u64 into the accumulator.
Click to show internal directories.
Click to hide internal directories.