HashByteSeq
Hash and equality functions for arbitrary ByteSeq.
primitive val HashByteSeq is HashFunction[(String box | Array[U8 val] box)] val, HashFunction64[(String box | Array[U8 val] box)] val
Implements
- HashFunction[(String box | Array[U8 val] box)] val
- HashFunction64[(String box | Array[U8 val] box)] val
Constructors
create
new val create() : HashByteSeq val^
Returns
- HashByteSeq val^
Public Functions
hash
fun box hash( x: (String box | Array[U8 val] box)) : USize val
Parameters
Returns
- USize val
hash64
fun box hash64( x: (String box | Array[U8 val] box)) : U64 val
Parameters
Returns
- U64 val
eq
fun box eq( x: (String box | Array[U8 val] box), y: (String box | Array[U8 val] box)) : Bool val
Parameters
Returns
- Bool val
ne
fun box ne( that: HashByteSeq val) : Bool val
Parameters
- that: HashByteSeq val
Returns
- Bool val
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/collections-HashByteSeq