string-type


Vocabulary
alien.arrays

Definition
USING: alien.c-types arrays kernel sequences words ;

IN: alien.arrays

PREDICATE: string-type < pair
first2 [ c-string = ] [ word? ] bi* and ;


Methods
USING: alien.arrays alien.c-types kernel ;

M: string-type base-type drop void* base-type ;


USING: alien.arrays alien.c-types kernel ;

M: string-type c-type-align drop void* c-type-align ;


USING: alien.arrays alien.c-types kernel ;

M: string-type c-type-align-first
drop void* c-type-align-first ;


USING: alien.arrays alien.c-types kernel ;

M: string-type c-type-boxed-class drop object ;


USING: alien.arrays alien.c-types alien.strings
io.encodings.binary kernel sequences ;

M: string-type c-type-boxer-quot
second dup binary =
[ drop void* c-type-boxer-quot ] [ [ alien>string ] curry ]
if ;


USING: alien.arrays alien.c-types kernel ;

M: string-type c-type-class drop object ;


USING: alien.arrays alien.c-types kernel ;

M: string-type c-type-copier drop [ ] ;


USING: alien.accessors alien.arrays alien.c-types kernel ;

M: string-type c-type-getter drop [ alien-cell ] ;


USING: alien.arrays alien.c-types cpu.architecture kernel ;

M: string-type c-type-rep drop int-rep ;


USING: alien.accessors alien.arrays alien.c-types kernel ;

M: string-type c-type-setter drop [ set-alien-cell ] ;


USING: alien.arrays alien.c-types alien.strings
io.encodings.binary kernel sequences ;

M: string-type c-type-unboxer-quot
second dup binary =
[ drop void* c-type-unboxer-quot ]
[ [ string>alien ] curry ] if ;


USING: alien.arrays alien.c-types kernel ;

M: string-type heap-size drop void* heap-size ;


USING: alien.arrays alien.c-types ;

M: string-type lookup-c-type ;