byte-length method for struct-arrays
parent
865e37f590
commit
01d344fb46
|
@ -10,6 +10,7 @@ TUPLE: struct-array
|
|||
{ element-size array-capacity read-only } ;
|
||||
|
||||
M: struct-array length length>> ;
|
||||
M: struct-array byte-length [ length>> ] [ element-size>> ] bi * ;
|
||||
|
||||
M: struct-array nth-unsafe
|
||||
[ element-size>> * ] [ underlying>> ] bi <displaced-alien> ;
|
||||
|
|
Loading…
Reference in New Issue