Handbook
Glossary
arg>bytes ( obj -- byte-array )
Vocabulary
redis
.
command-writer
.
private
Inputs
obj
an
object
Outputs
byte-array
an
object
Definition
USING:
byte-arrays
combinators
io.encodings.string
io.encodings.utf8
kernel
math
math.parser
;
IN:
redis.command-writer.private
:
arg>bytes
( obj -- byte-array )
{
{
[
dup
byte-array?
]
[
]
}
{
[
dup
number?
]
[
number>string
utf8
encode
]
}
[
utf8
encode
]
}
cond
;