byte-length for struct-vectors
parent
b42a1cc746
commit
84485d36ee
|
@ -12,6 +12,7 @@ TUPLE: struct-vector
|
||||||
: <struct-vector> ( capacity c-type -- struct-vector )
|
: <struct-vector> ( capacity c-type -- struct-vector )
|
||||||
[ <struct-array> 0 ] keep struct-vector boa ; inline
|
[ <struct-array> 0 ] keep struct-vector boa ; inline
|
||||||
|
|
||||||
|
M: struct-vector byte-length underlying>> byte-length ;
|
||||||
M: struct-vector new-sequence
|
M: struct-vector new-sequence
|
||||||
[ c-type>> <struct-array> ] [ [ >fixnum ] [ c-type>> ] bi* ] 2bi
|
[ c-type>> <struct-array> ] [ [ >fixnum ] [ c-type>> ] bi* ] 2bi
|
||||||
struct-vector boa ;
|
struct-vector boa ;
|
||||||
|
|
Loading…
Reference in New Issue