game-loop-benchmark-vector - Factor Documentation

game-loop-benchmark-vector


Vocabulary
specialized-vectors .instances .game .loop .benchmark .game-loop-benchmark

Definition
USING: sequences.private
specialized-arrays.instances.game.loop.benchmark.game-loop-benchmark
;

IN:
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark

TUPLE: game-loop-benchmark-vector
{
underlying game-loop-benchmark-array initial:
game-loop-benchmark-array{ }
} { length array-capacity initial: 0 } ;


Methods
USING: accessors alien
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector >c-ptr
underlying>> underlying>> ; inline


USING: prettyprint.custom
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector >pprint-sequence ;


USING: alien kernel math sequences
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector byte-length
[ length ] [ element-size ] bi * ; inline


USING: growable kernel
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector contract 2drop ; inline


USING: kernel
specialized-arrays.instances.game.loop.benchmark.game-loop-benchmark
specialized-arrays.private
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector direct-like
drop <direct-game-loop-benchmark-array> ; inline


USING: alien alien.c-types game.loop.benchmark kernel
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector element-size
drop \ game-loop-benchmark heap-size ; inline


USING: classes kernel sequences
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector equal?
over game-loop-benchmark-vector instance?
[ sequence= ] [ 2drop f ] if ;


USING: classes kernel sequences
specialized-arrays.instances.game.loop.benchmark.game-loop-benchmark
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector like
drop dup game-loop-benchmark-vector instance? [
dup game-loop-benchmark-array instance?
[ dup length game-loop-benchmark-vector boa ]
[ >game-loop-benchmark-vector ] if
] unless ; inline


USING: kernel sequences
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector new-resizable
drop <game-loop-benchmark-vector> ; inline


USING: kernel math sequences
specialized-arrays.instances.game.loop.benchmark.game-loop-benchmark
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector new-sequence
drop [ <game-loop-benchmark-array> ] [ >fixnum ] bi
game-loop-benchmark-vector boa ; inline


USING: accessors specialized-arrays.private
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector nth-c-ptr
underlying>> nth-c-ptr ; inline


USING: prettyprint.custom
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector pprint* pprint-object ;


USING: kernel prettyprint.custom
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
;

M: game-loop-benchmark-vector pprint-delims
drop \ game-loop-benchmark-vector{ \ } ;

AltStyle によって変換されたページ (->オリジナル) /