Package org.jboss.netty.buffer

Examples of org.jboss.netty.buffer.ChannelBuffer.readFloat()


    assertEquals(0x42, buffer.readUnsignedByte());
    assertEquals(0x12345678, buffer.readInt());

    assertEquals(0x63, buffer.readUnsignedByte());
    assertEquals(1234.5678F, buffer.readFloat(), 0);

    assertEquals(0x84, buffer.readUnsignedByte());
    assertEquals("test", ChannelBufferUtils.readString(buffer));

    assertEquals(0xA5, buffer.readUnsignedByte());
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.