Handbook
Glossary
rocksdb-get* ( db read-options key -- value/f error/f )
Vocabulary
rocksdb
.
lib
Inputs
db
an
object
read-options
an
object
key
an
object
Outputs
value/f
an
object
error/f
an
object
Definition
USING:
alien.c-types
alien.data
alien.strings
io.encodings.string
io.encodings.utf8
kernel
rocksdb.ffi
sequences
;
IN:
rocksdb.lib
:
rocksdb-get*
( db read-options key -- value/f error/f )
utf8
encode
dup
length
0
size_t
<ref>
f
void*
<ref>
[
rocksdb_get
]
2keep
dup
[
void*
deref
alien>native-string
]
when
dup
[
[
2drop
f
]
dip
]
[
[
size_t
deref
memory>byte-array
]
dip
]
if
;