Examples of readFloat()


Examples of com.alibaba.dubbo.common.serialize.ObjectInput.readFloat()

        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(
                byteArrayOutputStream.toByteArray());
        ObjectInput deserialize = serialization.deserialize(url, byteArrayInputStream);

        assertTrue(1.28F == deserialize.readFloat());

        try {
            deserialize.readFloat();
            fail();
        } catch (IOException expected) {
View Full Code Here

Examples of com.ardor3d.util.LittleEndianRandomAccessDataInput.readFloat()

                    fanIndices.add(i);
                } else {
                    stripIndices.add(i);
                }
                for (int j = 0; j < absLength; j++) {
                    cmd.texCoords[j * 2 + 0] = bis.readFloat();
                    cmd.texCoords[j * 2 + 1] = bis.readFloat();
                    cmd.vertIndices[j] = bis.readInt();
                }
            }

View Full Code Here

Examples of com.badlogic.gdx.utils.DataInput.readFloat()

        if (parentName != null) {
          parent = skeletonData.findBone(parentName);
          if (parent == null) throw new SerializationException("Parent bone not found: " + parentName);
        }
        BoneData boneData = new BoneData(name, parent);
        boneData.x = input.readFloat() * scale;
        boneData.y = input.readFloat() * scale;
        boneData.scaleX = input.readFloat();
        boneData.scaleY = input.readFloat();
        boneData.rotation = input.readFloat();
        boneData.length = input.readFloat() * scale;
 
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Input.readFloat()

    assertEquals(read.readFloat(1000, false), 63f);
    assertEquals(read.readFloat(1000, true), 64f);
    assertEquals(read.readFloat(1000, false), 64f);
    assertEquals(read.readFloat(1000, true), 127f);
    assertEquals(read.readFloat(1000, false), 127f);
    assertEquals(read.readFloat(1000, true), 128f);
    assertEquals(read.readFloat(1000, false), 128f);
    assertEquals(read.readFloat(1000, true), 8191f);
    assertEquals(read.readFloat(1000, false), 8191f);
    assertEquals(read.readFloat(1000, true), 8192f);
    assertEquals(read.readFloat(1000, false), 8192f);
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeInput.readFloat()

    assertEquals(4, write.writeFloat(-65, 1000, true));
    assertEquals(4, write.writeFloat(-8192, 1000, false));
    assertEquals(4, write.writeFloat(-8192, 1000, true));

    Input read = new UnsafeInput(write.toBytes());
    assertEquals(read.readFloat(), 0f);
    assertEquals(read.readFloat(), 63f);
    assertEquals(read.readFloat(), 64f);
    assertEquals(read.readFloat(), 127f);
    assertEquals(read.readFloat(), 128f);
    assertEquals(read.readFloat(), 8192f);
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeMemoryInput.readFloat()

    assertEquals(4, write.writeFloat(-65, 1000, true));
    assertEquals(4, write.writeFloat(-8192, 1000, false));
    assertEquals(4, write.writeFloat(-8192, 1000, true));

    Input read = new UnsafeMemoryInput(write.toBytes());
    assertEquals(read.readFloat(), 0f);
    assertEquals(read.readFloat(), 63f);
    assertEquals(read.readFloat(), 64f);
    assertEquals(read.readFloat(), 127f);
    assertEquals(read.readFloat(), 128f);
    assertEquals(read.readFloat(), 8192f);
View Full Code Here

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationReader.readFloat()

    builder.add( "testFloat", ( float )0.123 );
    builder.add( "testInt", 123 );
    builder.add( "testString", "1234" );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( builder.finish() );
    assertEquals( ( float )0.123, reader.readFloat( "testFloat", 0 ) );
    assertEquals( 123, reader.readInt( "testInt", 0 ) );
    assertEquals( "1234", reader.readString( "testString", null ) );
  }
}
View Full Code Here

Examples of com.firefly.utils.json.JsonReader.readFloat()

    Assert.assertThat(reader.isObject(), is(true));
    char[] t1 = "dsffsfsf".toCharArray();
    char[] ret = reader.readField(t1);
    Assert.assertThat(new String(ret), is("testField"));
    Assert.assertThat(reader.isColon(), is(true));
    Assert.assertThat(reader.readFloat(), is(-17.44320F));
    Assert.assertThat(reader.isComma(), is(true));
   
    ret = reader.readField(t1);
    Assert.assertThat(new String(ret), is("testField2"));
    Assert.assertThat(reader.isColon(), is(true));
View Full Code Here

Examples of com.firefly.utils.json.io.JsonStringReader.readFloat()

    Assert.assertThat(reader.isObject(), is(true));
    char[] t1 = "dsffsfsf".toCharArray();
    char[] ret = reader.readField(t1);
    Assert.assertThat(new String(ret), is("testField"));
    Assert.assertThat(reader.isColon(), is(true));
    Assert.assertThat(reader.readFloat(), is(-17.44320F));
    Assert.assertThat(reader.isComma(), is(true));
   
    ret = reader.readField(t1);
    Assert.assertThat(new String(ret), is("testField2"));
    Assert.assertThat(reader.isColon(), is(true));
View Full Code Here

Examples of com.google.protobuf.CodedInputStream.readFloat()

               break;
            case wrappedDouble << 3 | WireFormat.WIRETYPE_FIXED64:
               value = in.readDouble();
               break;
            case wrappedFloat << 3 | WireFormat.WIRETYPE_FIXED32:
               value = in.readFloat();
               break;
            case wrappedFixed32 << 3 | WireFormat.WIRETYPE_FIXED32:
               value = in.readFixed32();
               break;
            case wrappedSFixed32 << 3 | WireFormat.WIRETYPE_FIXED32:
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.