W3cubDocs

/Pony

HashByteSeq

[Source]

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

Constructors

create

[Source]

new val create()
: HashByteSeq val^

Returns

Public Functions

hash

[Source]

fun box hash(
  x: (String box | Array[U8 val] box))
: USize val

Parameters

Returns

hash64

[Source]

fun box hash64(
  x: (String box | Array[U8 val] box))
: U64 val

Parameters

Returns

eq

[Source]

fun box eq(
  x: (String box | Array[U8 val] box),
  y: (String box | Array[U8 val] box))
: Bool val

Parameters

Returns

ne

[Source]

fun box ne(
  that: HashByteSeq val)
: Bool val

Parameters

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/collections-HashByteSeq