public class BitQueue extends Object
Created by mackaiver on 18/11/16.
Modifier and Type | Field and Description |
---|---|
int |
queueLength |
Constructor and Description |
---|
BitQueue() |
Modifier and Type | Method and Description |
---|---|
void |
addByte(byte b) |
void |
addShort(short s) |
String |
bitString()
Representation of this queue as a string of bits.
|
int |
peekByte()
get the first element in the queue without removing it.
|
void |
remove(int n)
remove the n first entries in this queue
|
public void addByte(byte b)
public void addShort(short s)
public void remove(int n)
n
- nmber of bits to remove.public int peekByte()
public String bitString()
Copyright © 2019. All rights reserved.