1 USING: help.markup help.syntax byte-vectors ;
2 IN: specialized-vectors
4 ARTICLE: "specialized-vectors" "Specialized vectors"
5 "The " { $vocab-link "specialized-vectors" } " vocabulary implements resizable sequence types for storing machine values in a space-efficient manner without boxing."
7 "For each primitive C type " { $snippet "T" } ", a set of words are defined:"
9 { { $snippet "T-vector" } { "The class of vectors with elements of type " { $snippet "T" } } }
10 { { $snippet "<T-vector>" } { "Constructor for vectors with elements of type " { $snippet "T" } "; stack effect " { $snippet "( len -- vector )" } } }
11 { { $snippet ">T-vector" } { "Converts a sequence into a specialized vector of type " { $snippet "T" } "; stack effect " { $snippet "( seq -- vector )" } } }
12 { { $snippet "T-vector{" } { "Literal syntax, consists of a series of values terminated by " { $snippet "}" } } }
14 "The primitive C types for which specialized vectors exist:"
24 { $snippet "longlong" }
25 { $snippet "ulonglong" }
31 "Specialized vectors are generated with a functor in the " { $vocab-link "specialized-vectors.functor" } " vocabulary."
33 "The " { $vocab-link "specialized-arrays" } " vocabulary provides fixed-length versions of the above." ;
35 ABOUT: "specialized-vectors"