]> gitweb.factorcode.org Git - factor.git/commitdiff
specialized-vectors: implement binary-object protocol for specialized-vectors
authorJoe Groff <joe@victoria.(none)>
Tue, 8 Jun 2010 20:40:07 +0000 (13:40 -0700)
committerJoe Groff <joe@victoria.(none)>
Tue, 8 Jun 2010 20:40:07 +0000 (13:40 -0700)
basis/specialized-vectors/specialized-vectors.factor

index fd36121df1dd8df9d5d3d8968128de6ec05f0f34..5c47a9e879c9ff28f0c0402dfcc34f18fe030cc3 100644 (file)
@@ -35,6 +35,9 @@ M: V >pprint-sequence ;
 
 M: V pprint* pprint-object ;
 
+M: V >c-ptr underlying>> underlying>> ; inline
+M: V byte-length [ length ] [ element-size ] bi * ; inline
+
 SYNTAX: V{ \ } [ >V ] parse-literal ;
 
 INSTANCE: V growable