Esempio n. 1
0
 /**
  * The main method.
  *
  * @param args the arguments
  */
 public static void main(String[] args) {
   CircularBuffer b = new CircularBuffer(2, true);
   b.put((byte) 1);
   b.put((byte) 2);
   b.put((byte) 3);
   System.out.println(b.get());
   System.out.println(b.get());
   b.put(new byte[] {1, 2, 3, 4}, 0, 4);
   System.out.println(b.get(new byte[10], 0, 10));
   System.out.println(b.get(new byte[10], 0, 10));
 }