Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ld.nape;
- `(source)
- class Allocator {
- public var pool_Int:Pool_Int;
- public var pool_Float:Pool_Float;
- public inline function alloc_Int() return pool_Int.alloc()
- public inline function reserve_float(num:UInt) pool_Float.reserve(num))
- public function new() {
- pool_Int = new Pool_Int();
- pool_Float = new Pool_Float();
- }
- public inline function clear() {
- clear_Int();
- clear_Float();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement