alien.data vocabulary
Factor handbook ยป Vocabulary index


Summary
Words for allocating objects and arrays of C types

Metadata
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
bad-byte-array-length tuplebyte-array type
local-allocation-error tuple


Parsing words
WordSyntax
c-array@
c-array{


Generic words
WordStack effect
(c-array)( len c-type -- array )
<c-array>( len c-type -- array )
<c-direct-array>( alien len c-type -- array )
>c-array( seq c-type -- array )
binary-zero?( value -- ? )
c-(array)-constructor( c-type -- word )
c-array-constructor( c-type -- word )
c-array-type( c-type -- word )
c-array-type?( c-type -- word )
c-array?( obj c-type -- ? )
c-direct-array-constructor( c-type -- word )


Ordinary words
WordStack effect
<ref>( value c-type -- c-ptr )
bad-byte-array-length( byte-array type -- * )
cast-array( byte-array c-type -- array )
deref( c-ptr c-type -- value )
little-endian?( -- ? )
local-allocation-error( -- * )
malloc-array( n c-type -- array )
malloc-byte-array( byte-array -- alien )
malloc-like( seq c-type -- malloc )
malloc-string( string encoding -- alien )
memory>byte-array( alien len -- byte-array )
read-c-ptr( c-ptr -- value )
stream-read-c-ptr( c-ptr stream -- value )
with-out-parameters( c-types quot -- values... )
with-scoped-allocation( c-types quot -- )


Class predicate words
WordStack effect
bad-byte-array-length?( object -- ? )
local-allocation-error?( object -- ? )


Files


Metadata files


Children from resource:extra
VocabularySummary
alien.data.mapCombinators for mapping over packed binary data


Children
VocabularySummary
alien.data.private