Examples of debug_GetRead()


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

        Integer.valueOf("01010101", 2).byteValue()
      });
      assertEquals(0, data.debug_GetRead());
      data.mark();
      assertEquals(1, data.read());
      assertEquals(1, data.debug_GetRead());
      data.reset();
      data.setPeek(true);
      assertEquals(1, data.read());
      assertEquals(0, data.debug_GetRead());
      data.setPeek(false);
View Full Code Here

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

      assertEquals(1, data.read());
      assertEquals(1, data.debug_GetRead());
      data.reset();
      data.setPeek(true);
      assertEquals(1, data.read());
      assertEquals(0, data.debug_GetRead());
      data.setPeek(false);
      assertEquals(1, data.read());
      assertEquals(1, data.debug_GetRead());
    } finally {
    }
View Full Code Here

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

      data.setPeek(true);
      assertEquals(1, data.read());
      assertEquals(0, data.debug_GetRead());
      data.setPeek(false);
      assertEquals(1, data.read());
      assertEquals(1, data.debug_GetRead());
    } finally {
    }
  }
 
  @Test
View Full Code Here

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

     
      assertEquals(0, data.readable());
      assertEquals(0, data.written());
     
      assertEquals(512, 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.readable());
      assertEquals(0, data.written());
     
      assertEquals(1, 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.readable());
      assertEquals(0, data.written());
     
      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(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

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

     
      assertEquals(1, data.written());
      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 {
    }
  }
View Full Code Here

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

     
      assertEquals(16, data.written());
      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]);
View Full Code Here

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

     
      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);
      data.mark();
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.