Examples of debug_GetRead()


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

     
      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

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

      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 {
    }
   
    try {
View Full Code Here

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

      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 {
    }
   
    try {
View Full Code Here

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

      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

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

      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

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

     
      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

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

     
      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

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

     
      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

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

     
      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

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

    try {
      Data data = new Data(new byte[] {
        Integer.valueOf("01010101", 2).byteValue()
      });
     
      assertEquals(0, data.debug_GetRead());
      int a = data.peek();
      assertEquals(0, data.debug_GetRead());
      int b = data.read();
      assertEquals(1, data.debug_GetRead());
      assertEquals(1, a);
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.