uchar-array


Vocabulary
specialized-arrays.instances.alien.c-types.uchar

Definition
USING: alien sequences.private ;

IN: specialized-arrays.instances.alien.c-types.uchar

TUPLE: uchar-array
{ underlying c-ptr read-only initial: f }
{ length array-capacity read-only initial: 0 } ; final


Methods
USING: prettyprint.custom
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array >pprint-sequence ;


USING: accessors kernel
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array clone
[ underlying>> clone ] [ length>> ] bi <direct-uchar-array>
; inline


USING: kernel specialized-arrays.instances.alien.c-types.uchar
specialized-arrays.private ;

M: uchar-array direct-like drop <direct-uchar-array> ; inline


USING: alien alien.c-types kernel
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array element-size drop \ uchar heap-size ; inline


USING: classes kernel sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array equal?
over uchar-array instance? [ sequence= ] [ 2drop f ] if ;


USING: gpu.render.private kernel opengl.gl
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array gl-array-element-type drop GL_UNSIGNED_BYTE
; inline


USING: accessors sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array length length>> ; inline


USING: alien.c-types alien.data classes kernel sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array like
drop dup uchar-array instance? [ \ uchar >c-array ] unless
; inline


USING: kernel sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array new-sequence drop (uchar-array) ; inline


USING: accessors alien alien.c-types kernel
specialized-arrays.instances.alien.c-types.uchar
specialized-arrays.private ;

M: uchar-array nth-c-ptr
underlying>> \ uchar array-accessor drop
swap <displaced-alien> ; inline


USING: accessors alien.c-types sequences.private
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array nth-unsafe
underlying>> \ uchar alien-element ; inline


USING: kernel prettyprint.custom
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array pprint-delims drop \ uchar-array{ \ } ;


USING: accessors alien.c-types byte-arrays kernel math
sequences.private
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array resize
[
[ \ uchar heap-size * ] [ underlying>> ] bi*
resize-byte-array
] [ drop ] 2bi <direct-uchar-array> ; inline


USING: accessors alien.c-types sequences.private
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array set-nth-unsafe
underlying>> \ uchar set-alien-element ; inline


USING: alien.c-types kernel specialized-arrays
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array underlying-type drop \ uchar ;


USING: alien.c-types math math.vectors sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array v*high
[ * \ uchar heap-size neg shift ] 2map ; inline


USING: alien.c-types math math.vectors sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array vs* [ * \ uchar c-type-clamp ] 2map ; inline


USING: alien.c-types math math.vectors sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array vs+ [ + \ uchar c-type-clamp ] 2map ; inline


USING: alien.c-types math math.vectors sequences
specialized-arrays.instances.alien.c-types.uchar ;

M: uchar-array vs- [ - \ uchar c-type-clamp ] 2map ; inline