Examples of debug_GetRead()


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

        Integer.valueOf("10001111", 2).byteValue(),
        Integer.valueOf("11111010", 2).byteValue(),
        Integer.valueOf("10010110", 2).byteValue()
      });
     
      assertEquals(0, data.debug_GetRead());
      BigInteger a = data.peek(32, false);
      assertEquals(0, data.debug_GetRead());
      BigInteger b = data.read(32, false);
      assertEquals(32, data.debug_GetRead());
      assertEquals(a, b);
View Full Code Here

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

        Integer.valueOf("10010110", 2).byteValue()
      });
     
      assertEquals(0, data.debug_GetRead());
      BigInteger a = data.peek(32, false);
      assertEquals(0, data.debug_GetRead());
      BigInteger b = data.read(32, false);
      assertEquals(32, data.debug_GetRead());
      assertEquals(a, b);
      assertEquals(0, data.readable());
    } finally {
View Full Code Here

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

     
      assertEquals(0, data.debug_GetRead());
      BigInteger a = data.peek(32, false);
      assertEquals(0, data.debug_GetRead());
      BigInteger b = data.read(32, false);
      assertEquals(32, data.debug_GetRead());
      assertEquals(a, b);
      assertEquals(0, data.readable());
    } finally {
    }
  }
View Full Code Here

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

     
      for (int i = 0; i < 8; i++) {
        assertEquals(1 - i % 2, data.read());
      }
     
      assertEquals(8, data.debug_GetRead());
      assertEquals(8, data.readable());
     
      for (int i = 0; i < 8; i++) {
        assertEquals(i % 2, data.read());
      }
View Full Code Here

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

     
      for (int i = 0; i < 8; i++) {
        assertEquals(i % 2, data.read());
      }
     
      assertEquals(16, data.debug_GetRead());
      assertEquals(16, data.debug_GetWrite());
      assertEquals(0, data.readable());
    } finally {
    }
  }
View Full Code Here

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

        } else {
          assertEquals(false, data.read2());
        }
      }
     
      assertEquals(8, data.debug_GetRead());
      assertEquals(8, data.readable());
     
      for (int i = 0; i < 8; i++) {
        if (i % 2 == 0) {
          assertEquals(false, data.read2());
View Full Code Here

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

        } else {
          assertEquals(true, data.read2());
        }
      }
     
      assertEquals(16, data.debug_GetRead());
      assertEquals(16, data.debug_GetWrite());
      assertEquals(0, data.readable());
    } finally {
    }
  }
View Full Code Here

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

         
      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++) {
        data.write(1 - i % 2);
View Full Code Here

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

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

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

        data.write(i % 2);
      }
     
      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]);
     
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.