isQueued = enqueue(queueObj,packet)
adds the packet packet to the tail of the first-in first-out (FIFO)
queue queueObj, and returns the status of the packet addition.
isQueued = enqueue(queueObj,packet,size)
adds the packet packet of specified size size to
the tail of the FIFO queue queueObj, and returns the status of the
packet addition.
FIFO queue, specified as an object of class wnet.FIFOQueue.
Packet to add at the tail of the FIFO queue, specified as any MATLAB data type.
Size of the specified packet in bytes, specified as a nonnegative integer. This
value represents the number of data bytes required to hold the specified packet. If no
value is specified, the enqueue function assumes that the specified
packet size is 0 bytes.