Handbook
Glossary
ascii-string>utf16-byte-array ( off string -- byte-array )
Vocabulary
io
.
encodings
.
utf16
.
private
Inputs
off
an
object
string
an
object
Outputs
byte-array
an
object
Definition
USING:
byte-arrays
kernel
math
math.private
sequences
;
IN:
io.encodings.utf16.private
:
ascii-string>utf16-byte-array
( off string -- byte-array )
[
length
>fixnum
[
<iota>
]
[
2
fixnum*fast
<byte-array>
]
bi
]
keep
[
[
ascii-char>utf16-byte-array
]
2curry
with
each
]
keepd
;
inline