Spec-Zone.ru › 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

  • HashFunction[(String box | Array[U8 val] box)] val
  • HashFunction64[(String box | Array[U8 val] box)] val

Constructors

create

[Source]

new val create()
: HashByteSeq val^

Returns

  • HashByteSeq val^

Public Functions

hash

[Source]

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

Parameters

  • x: (String box | Array[U8 val] box)

Returns

  • USize val

hash64

[Source]

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

Parameters

  • x: (String box | Array[U8 val] box)

Returns

  • U64 val

eq

[Source]

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

Parameters

  • x: (String box | Array[U8 val] box)
  • y: (String box | Array[U8 val] box)

Returns

  • Bool val

ne

[Source]

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API