Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
component:transposer [2018/03/02 04:05]
kiritow
component:transposer [2018/03/02 04:23] (current)
kiritow
Line 38: Line 38:
   Get the capacity of the specified tank on the specified side.   Get the capacity of the specified tank on the specified side.
 - `getAllStacks(side:​number):​userdata`  ​ - `getAllStacks(side:​number):​userdata`  ​
-  Get a description of all stacks in the inventory on the specified side of the device.+  Get a description of all stacks in the inventory on the specified side of the device. ​  
 +  The return value is callable. Calling it will return a table describing the stack in the inventory or nothing if the iterator reaches end.   
 +  The return value provides the followings callbacks: ​  
 +  `getAll():​table` ​  
 +    Returns ALL the stack in the this.array. Memory intensive. ​  
 +  `count():​number` ​  
 +    Returns the number of elements in the this.array. ​  
 +  `reset()` ​  
 +    Reset the iterator index so that the next call will return the first element. ​  
 +    ​
  
 ---- ----
  
 {{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}} {{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}