Examples of debug_GetBuffer()


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

        Integer.valueOf("01010101", 2).byteValue(),
        Integer.valueOf("10101010", 2).byteValue()
      };
      Data data = new Data(buffer);
     
      assertEquals(2, data.debug_GetBuffer().length);
      assertEquals(16, data.debug_GetWrite());
      assertEquals(16, data.written());
      assertEquals(16, data.readable());
     
      for (int i = 0; i < 8; i++) {
View Full Code Here

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

        Integer.valueOf("01010101", 2).byteValue(),
        Integer.valueOf("10101010", 2).byteValue()
      };
      Data data = new Data(buffer);
     
      assertEquals(2, data.debug_GetBuffer().length);
      assertEquals(16, data.written());
      assertEquals(16, data.readable());
     
      for (int i = 0; i < 8; i++) {
        if (i % 2 == 0) {
View Full Code Here

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

      Data data = new Data();
         
      assertEquals(0, data.written());
      assertEquals(0, data.readable());
     
      assertEquals(512, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      for (int i = 0; i < 8; i++) {
View Full Code Here

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

      assertEquals(16, data.written());
      assertEquals(16, data.readable());
      assertEquals(0, data.debug_GetRead());
      assertEquals(16, data.debug_GetWrite());
     
      assertEquals(Integer.valueOf("01010101", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("10101010", 2).byteValue(), data.debug_GetBuffer()[1]);
     
      data.write(-1);
      data.write(8349543);
      assertEquals(Integer.valueOf("00000011", 2).byteValue(), data.debug_GetBuffer()[2]);
View Full Code Here

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

      assertEquals(16, data.readable());
      assertEquals(0, data.debug_GetRead());
      assertEquals(16, data.debug_GetWrite());
     
      assertEquals(Integer.valueOf("01010101", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("10101010", 2).byteValue(), data.debug_GetBuffer()[1]);
     
      data.write(-1);
      data.write(8349543);
      assertEquals(Integer.valueOf("00000011", 2).byteValue(), data.debug_GetBuffer()[2]);
    } finally {
View Full Code Here

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

      assertEquals(Integer.valueOf("01010101", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("10101010", 2).byteValue(), data.debug_GetBuffer()[1]);
     
      data.write(-1);
      data.write(8349543);
      assertEquals(Integer.valueOf("00000011", 2).byteValue(), data.debug_GetBuffer()[2]);
    } finally {
    }
   
    try {
      byte[] buffer = new byte[50];
View Full Code Here

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());
     
      for (int i = 0; i < 8; i++) {
View Full Code Here

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

     
      for (int i = 0; i < 8; i++) {
        data.write(1 - i % 2);
      }
     
      assertEquals(178, data.debug_GetBuffer().length);
      assertEquals(408, data.written());
      assertEquals(408, data.readable());
      assertEquals(0, data.debug_GetRead());
      assertEquals(408, data.debug_GetWrite());
     
View Full Code Here

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

     
      for (int i = 0; i < 8; i++) {
        data.write(i % 2);
      }
     
      assertEquals(178, data.debug_GetBuffer().length);
      assertEquals(416, data.written());
      assertEquals(416, data.readable());
      assertEquals(0, data.debug_GetRead());
      assertEquals(416, data.debug_GetWrite());
    } finally {
View Full Code Here

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());
     
      assertEquals(0, data.pull());
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.