Package com.peterhi.obsolete

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


      Data data = new Data(buffer);
     
      assertEquals(400, data.written());
      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);
View Full Code Here


      Data data = new Data(buffer);
     
      assertEquals(400, data.written());
      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);
View Full Code Here

      Data data = new Data(buffer);
     
      assertEquals(0, data.written());
      assertEquals(0, data.readable());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
View Full Code Here

      Data data = new Data(buffer, 0, buffer.length);
     
      assertEquals(400, data.written());
      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 {
    }
View Full Code Here

      Data data = new Data(buffer, 15, 20);
     
      assertEquals(160, data.written());
      assertEquals(160, data.readable());
     
      assertEquals(20, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(160, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
View Full Code Here

      Data data = new Data(buffer, 25, 0);
     
      assertEquals(0, data.written());
      assertEquals(0, data.readable());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
View Full Code Here

      Data data = new Data(buffer, 0, buffer.length);
     
      assertEquals(0, data.written());
      assertEquals(0, data.readable());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
View Full Code Here

      Data data = new Data(buffer, 0, 8, true);
     
      assertEquals(8, data.written());
      assertEquals(8, data.readable());
     
      assertEquals(1, data.debug_GetBuffer().length);
      assertEquals(Integer.valueOf("01010101", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(0, data.debug_GetRead());
      assertEquals(8, data.debug_GetWrite());
    } finally {
    }
View Full Code Here

     
      assertEquals(8, data.written());
      assertEquals(8, data.readable());
     
      assertEquals(1, data.debug_GetBuffer().length);
      assertEquals(Integer.valueOf("01010101", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(0, data.debug_GetRead());
      assertEquals(8, data.debug_GetWrite());
    } finally {
    }
   
View Full Code Here

      Data data = new Data(buffer, 0, 8, false);
     
      assertEquals(8, data.written());
      assertEquals(8, data.readable());
     
      assertEquals(1, data.debug_GetBuffer().length);
      assertEquals(Integer.valueOf("01010101", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(0, data.debug_GetRead());
      assertEquals(8, data.debug_GetWrite());
    } finally {
    }
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.