Examples of debug_GetBuffer()


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());
     
      assertEquals(0, data.push(0));
View Full Code Here

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

      Data data = new Data(buffer);
     
      assertEquals(16, data.written());
      assertEquals(16, data.readable());
     
      assertEquals(2, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(16, data.debug_GetWrite());
      data.skip(4);
     
      long[] length = new long[1];
View Full Code Here

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

      Data data = new Data();
     
      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_GetBuffer()

      Data data = new Data(1);
     
      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_GetBuffer()

      Data data = new Data(0);
     
      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_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());
    } finally {
    }
View Full Code Here

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

      data.write(BigInteger.ONE, 1);
     
      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_GetBuffer()

      data.fill(1, 6);
     
      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]);
View Full Code Here

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

      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]);
    } finally {
    }
  }
 
View Full Code Here

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

      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]);
    } finally {
    }
  }
 
  @Test
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.