Handbook
Glossary
checksum? ( object -- ? )
Vocabulary
checksums
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
checksum
class.
Definition
USING:
checksums.fnv1
checksums.internet
checksums.khash
checksums.metrohash
checksums.murmur
checksums.null
checksums.xxhash
classes.tuple.private
kernel
slots.private
;
IN:
checksums
:
checksum?
( object -- ? )
dup
dup
tuple?
[
layout-of
7
slot
dup
\
khash64
eq?
[
drop
t
]
[
dup
\
xxhash
eq?
[
drop
t
]
[
dup
\
murmur3-32
eq?
[
drop
t
]
[
dup
\
metrohash-128
eq?
[
drop
t
]
[
\
metrohash-64
eq?
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
[
drop
t
]
[
dup
null?
[
drop
t
]
[
dup
internet?
[
drop
t
]
[
dup
fnv1a-1024?
[
drop
t
]
[
dup
fnv1-1024?
[
drop
t
]
[
dup
fnv1a-512?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
if
;