Package com.peterhi.obsolete

Examples of com.peterhi.obsolete.Data.debug_GetMark()


      assertEquals(1, data.readable());
     
      assertEquals(128, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(1, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
  }
 
  @Test
View Full Code Here


      assertEquals(16, data.readable());

      assertEquals(512, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(16, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      assertEquals(Integer.valueOf("11100001", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("11111100", 2).byteValue(), data.debug_GetBuffer()[1]);
    } finally {
    }
View Full Code Here

      assertEquals(400, data.readable());
     
      assertEquals(50, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(400, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      data.skip(300);
      data.mark();
     
      assertEquals(100, data.readable());
View Full Code Here

      data.skip(300);
      data.mark();
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      data.skip(50);
     
      assertEquals(50, data.readable());
      assertEquals(350, data.debug_GetRead());
View Full Code Here

     
      data.skip(50);
     
      assertEquals(50, data.readable());
      assertEquals(350, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      assertEquals(true, data.reset());
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
View Full Code Here

     
      assertEquals(true, data.reset());
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(-1, data.debug_GetMark());
     
      assertEquals(false, data.reset());
     
      data.mark();
     
View Full Code Here

     
      data.mark();
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      assertEquals(true, data.reset());
    } finally {
    }
  }
View Full Code Here

      assertEquals(400, data.readable());
     
      assertEquals(50, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(400, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      data.skip(300);
      data.mark();
     
      assertEquals(100, data.readable());
View Full Code Here

      data.skip(300);
      data.mark();
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      data.skip(50);
     
      assertEquals(50, data.readable());
      assertEquals(350, data.debug_GetRead());
View Full Code Here

      assertEquals(400, data.readable());
     
      assertEquals(50, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(400, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
   
    try {
      byte[] buffer = new byte[0];
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.