Handbook
Glossary
guess-encoded-length ( string-length encoding -- byte-length )
Vocabulary
io
.
encodings
Inputs
string-length
an
object
encoding
an
object
Outputs
byte-length
an
object
Definition
IN:
io.encodings
GENERIC:
guess-encoded-length
( string-length encoding -- byte-length )
Methods
USING:
io.encodings
kernel
;
M:
object
guess-encoded-length
drop
;
inline
USING:
io.encodings
io.encodings.utf16
kernel
math
;
M:
utf16be
guess-encoded-length
drop
2
*
;
inline
USING:
io.encodings
io.encodings.utf16
kernel
math
;
M:
utf16le
guess-encoded-length
drop
2
*
;
inline