Handbook
Glossary
byte-length ( obj -- n )
Vocabulary
alien
Inputs
obj
an
object
Outputs
n
a non-negative integer
Generic word contract
Outputs the number of bytes of binary data that will be output by
>c-ptr
.
See also
>c-ptr
,
element-size
Definition
IN:
alien
GENERIC:
byte-length
( obj -- n )
flushable
Methods
USING:
alien
bit-arrays
bit-arrays.private
sequences
;
M:
bit-array
byte-length
length
bits>bytes
;
inline
USING:
alien
kernel
math
sequences
specialized-vectors.instances.gpu.demos.bunny.bunny-vertex-struct
;
M:
bunny-vertex-struct-vector
byte-length
[
length
]
[
element-size
]
bi
*
;
inline
USING:
alien
byte-vectors
sequences
;
M:
byte-vector
byte-length
length
;
USING:
alien
kernel
math
sequences
specialized-vectors.instances.math.vectors.simd.float-4
;
M:
float-4-vector
byte-length
[
length
]
[
element-size
]
bi
*
;
inline
USING:
alien
kernel
math
sequences
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;
M:
game-loop-benchmark-vector
byte-length
[
length
]
[
element-size
]
bi
*
;
inline
USING:
alien
nibble-arrays
nibble-arrays.private
sequences
;
M:
nibble-array
byte-length
length
nibbles>bytes
;
USING:
alien
kernel
math
sequences
;
M:
object
byte-length
[
length
]
[
element-size
]
bi
*
;
inline
USING:
alien
kernel
math
sequences
specialized-vectors.instances.alien.c-types.short
;
M:
short-vector
byte-length
[
length
]
[
element-size
]
bi
*
;
inline
USING:
alien
kernel
math.vectors.simd
;
M:
simd-128
byte-length
drop
16
;
inline
USING:
alien
classes
classes.struct
;
M:
struct
byte-length
class-of
struct-size
;
inline
foldable
flushable
USING:
alien
kernel
math
sequences
specialized-vectors.instances.alien.c-types.uint
;
M:
uint-vector
byte-length
[
length
]
[
element-size
]
bi
*
;
inline
USING:
alien
kernel
math
sequences
specialized-vectors.instances.alien.c-types.ushort
;
M:
ushort-vector
byte-length
[
length
]
[
element-size
]
bi
*
;
inline