Skip to content

[3pt] Describe new digest module function for xxHash32/64 #2092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
TarantoolBot opened this issue Apr 22, 2021 · 0 comments
Open
1 task

[3pt] Describe new digest module function for xxHash32/64 #2092

TarantoolBot opened this issue Apr 22, 2021 · 0 comments
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Apr 22, 2021

Describe the new digest module function for xxHash32/64

Product: Tarantool
Since: 2.9.1
Audience/target: Tarantool users
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/digest/
SME: @olegrok
Peer reviewer: @

Details

-- Examples below demonstrate xxHash32.
-- xxHash64 has exactly the same interface

-- Calculate the 32-bits hash (default seed is 0).
digest.xxhash32(string[, seed])

-- Streaming
-- Start a new hash by initializing state with a seed.
-- If no value provided, 0 is used as default.
xxhash = digest.xxhash32.new([seed])
-- Also it's possible to specify seed manually. If no value
-- provided a value initially passed to "new" is used.
-- Here and below "seed" expected to be unsigned
-- number. Function returns nothing.
xxhash:clear([seed])
-- Feed the hash state by calling "update" as many times as
-- necessary. Function returns nothing.
xxhash:update('string')
-- Produce a hash value.
xxhash:result()

Definition of done

  • The new digest module function for xxHash32/64 is described.
@veod32 veod32 added server [area] Task relates to Tarantool's server (core) functionality reference [location] Tarantool manual, Reference part feature A new functionality labels Apr 28, 2021
@veod32 veod32 changed the title digest module supports xxHash32/64 [0pt] Describe new digest module function for xxHash32/64 Apr 28, 2021
@veod32 veod32 changed the title [0pt] Describe new digest module function for xxHash32/64 [3pt] Describe new digest module function for xxHash32/64 Apr 28, 2021
@veod32 veod32 removed this from the Estimate [@veod32] milestone Apr 28, 2021
@veod32 veod32 removed the 3sp label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

No branches or pull requests

3 participants