Advertisement
Guest User

Untitled

a guest
May 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 0.42 KB | None | 0 0
  1. package ld.nape;
  2.  
  3. `(source)
  4.  
  5. class Allocator {
  6.    
  7.     public var pool_Int:Pool_Int;
  8.     public var pool_Float:Pool_Float;
  9.  
  10.     public inline function alloc_Int() return pool_Int.alloc()
  11.     public inline function reserve_float(num:UInt) pool_Float.reserve(num))
  12.    
  13.     public function new() {
  14.         pool_Int = new Pool_Int();
  15.         pool_Float = new Pool_Float();
  16.     }
  17.    
  18.     public inline function clear() {
  19.         clear_Int();
  20.         clear_Float();
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement