Examples of FlexBuffer


Examples of org.apache.etch.util.FlexBuffer

  @Test @Ignore
  public void blah() throws Exception
  {
    assertEquals( What.UP, aph.what );
    assertEquals( What.UP, bph.what );
    FlexBuffer buf = new FlexBuffer();
    buf.put( 1 );
    buf.put( 2 );
    buf.put( 3 );
    buf.put( 4 );
    buf.put( 5 );
    buf.setIndex( 0 );
    ac.transportPacket( null, buf );
    Thread.sleep( 500 );
    assertEquals( What.PACKET, bph.what );
    assertNotNull( bph.xsender );
    assertNotSame( buf, bph.xbuf );
View Full Code Here

Examples of org.commoncrawl.util.shared.FlexBuffer

      // ok set count in underlying object
      stringBytes.setLength(utfLen);
      // now if length != 0
      if (utfLen != 0) {
        // access the underlying buffer object
        FlexBuffer buffer = stringBytes.getBuffer();
        // make sure copy on write status
        buffer.copyOnWrite();
        // ok read in buytes
        in.readFully(buffer.get(), buffer.getOffset(), utfLen);
      }
    }
    // ok read in new way
    else {
      stringBytes.readFields(in);
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.