◆ jring() [1/2]
constructor for software ring
- Parameters
-
size | - size of the ring in number of entries |
◆ jring() [2/2]
constructor for software ring
- Parameters
-
address | - address of the ring |
size | - size of the ring in number of entries |
◆ get_avail()
retrieve available slots in the ring
- Returns
- - returns number of slots available in the ring
◆ get_proc()
retrieve number of packets available to process
- Returns
- - returns the number of objects ready for processing
◆ move()
move the ring to a new location with new size
- Parameters
-
newAddress | - New address for the software ring |
◆ pop() [1/2]
removes the object
- Returns
- - returns an object from the software ring
◆ pop() [2/2]
removes the object
- Parameters
-
stream | - stream to return from the ring |
- Returns
- - returns an object from the software ring
◆ push()
adds the object
- Parameters
-
data | - Object to add to the software ring |
◆ resize()
resize the ring
- Parameters
-
newSize | - new size of the ring |
◆ size()
size of the ring in number of objects
- Returns
- - size of the ring
The documentation for this class was generated from the following file:
- jtestbench/include/jring.h