|
JCE Provider
|
This class implements a FIFO of elements of type 'byte'. More...
Public Member Functions | |
| ByteFifo () | |
| Creates a new ByteFifo object. | |
| void | put (byte[] data, int offset, int len) |
| Puts data into the FIFO. More... | |
| void | expand (int len) |
| Expands FIFO buffer. More... | |
| void | fill (byte val, int len) |
| Fills a byte pattern into the FIFO (Padding) More... | |
| void | put (byte[] data) |
| Puts data into the FIFO. More... | |
| byte[] | get (int len) |
| Reads data from the FIFO. More... | |
| int | getSize () |
| Returns number of bytes stored in FIFO. More... | |
This class implements a FIFO of elements of type 'byte'.
| void expand | ( | int | len | ) |
Expands FIFO buffer.
| len | number of free bytes in FIFO |
| void fill | ( | byte | val, |
| int | len | ||
| ) |
Fills a byte pattern into the FIFO (Padding)
| val | value to be written into the FIFO |
| len | number of byte to be written into the FIFO |
| byte[] get | ( | int | len | ) |
Reads data from the FIFO.
| len | Number of bytes to be read from the FIFO |
| int getSize | ( | ) |
Returns number of bytes stored in FIFO.
| void put | ( | byte[] | data | ) |
Puts data into the FIFO.
| data | Data to be written into the FIFO |
| void put | ( | byte[] | data, |
| int | offset, | ||
| int | len | ||
| ) |
Puts data into the FIFO.
| data | Buffer from which data is written into the FIFO |
| offset | offset in 'data' array |
| len | len of data to be written into the FIFO |