Package com.peterhi.obsolete

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


     
      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, 3, 7, true);
     
      assertEquals(7, data.written());
      assertEquals(7, data.readable());
     
      assertEquals(1, data.debug_GetBuffer().length);
      assertEquals(Integer.valueOf("1001010", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(0, data.debug_GetRead());
      assertEquals(7, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
View Full Code Here

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

      Data data = new Data(buffer, 3, 7, false);
     
      assertEquals(10, data.written());
      assertEquals(10, data.readable());
     
      assertEquals(2, data.debug_GetBuffer().length);
      assertEquals(Integer.valueOf("01010000", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("00000010", 2).byteValue(), data.debug_GetBuffer()[1]);
      assertEquals(0, data.debug_GetRead());
      assertEquals(10, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
View Full Code Here

     
      assertEquals(10, data.written());
      assertEquals(10, data.readable());
     
      assertEquals(2, data.debug_GetBuffer().length);
      assertEquals(Integer.valueOf("01010000", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("00000010", 2).byteValue(), data.debug_GetBuffer()[1]);
      assertEquals(0, data.debug_GetRead());
      assertEquals(10, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
View Full Code Here

      assertEquals(10, data.written());
      assertEquals(10, data.readable());
     
      assertEquals(2, data.debug_GetBuffer().length);
      assertEquals(Integer.valueOf("01010000", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("00000010", 2).byteValue(), data.debug_GetBuffer()[1]);
      assertEquals(0, data.debug_GetRead());
      assertEquals(10, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
View Full Code Here

      Data data = new Data(buffer, 0, 0, true);
     
      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, 0, false);
     
      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, true);
     
      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, false);
     
      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

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.