]> gitweb.factorcode.org Git - factor.git/blobdiff - core/byte-arrays/byte-arrays.factor
classes.builtin: Add the BUILTIN: keyword which lets builtin classes show up in sourc...
[factor.git] / core / byte-arrays / byte-arrays.factor
index d4d2d95cf2a7f188a183d6bdcdcd7629f99f6a80..85bf0c45dafffb337b2badcdbc8dc55c74a4772e 100644 (file)
@@ -4,6 +4,9 @@ USING: accessors alien.accessors kernel math sequences
 sequences.private ;
 IN: byte-arrays
 
+BUILTIN: byte-array
+{ length array-capacity read-only initial: 0 } ;
+
 M: byte-array clone (clone) ; inline
 M: byte-array length length>> ; inline
 M: byte-array nth-unsafe swap integer>fixnum alien-unsigned-1 ; inline