Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for readFloats (0.28 sec)

  1. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/DecoderExtensions.java

            int length = decoder.readInt();
            float[] array = new float[length];
            readFloats(decoder, array);
            return array;
        }
    
        public static void readFloats(Decoder decoder, float[] array) throws IOException {
            for (int i = 0; i < array.length; i++) {
                array[i] = decoder.readFloat();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/ObjectInputStreamAdapter.kt

            require(it >= 0)
            it.toInt()
        }
    
        override fun readShort(): Short = readContext.readShort()
    
        override fun readLong(): Long = readContext.readLong()
    
        override fun readFloat(): Float = readContext.readFloat()
    
        override fun readDouble(): Double = readContext.readDouble()
    
        override fun readBoolean(): Boolean = readContext.readBoolean()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/InputStreamBackedDecoder.java

        }
    
        @Override
        public short readShort() throws EOFException, IOException {
            return inputStream.readShort();
        }
    
        @Override
        public float readFloat() throws EOFException, IOException {
            return inputStream.readFloat();
        }
    
        @Override
        public double readDouble() throws EOFException, IOException {
            return inputStream.readDouble();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedDecoder.java

                return input.readShort();
            } catch (KryoException e) {
                throw maybeEndOfStream(e);
            }
        }
    
        @Override
        public float readFloat() throws EOFException, IOException {
            try {
                return input.readFloat();
            } catch (KryoException e) {
                throw maybeEndOfStream(e);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/StringDeduplicatingDecoder.java

        }
    
        @Override
        public short readShort() throws EOFException, IOException {
            return delegate.readShort();
        }
    
        @Override
        public float readFloat() throws EOFException, IOException {
            return delegate.readFloat();
        }
    
        @Override
        public double readDouble() throws EOFException, IOException {
            return delegate.readDouble();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 11:24:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedDecoder.java

                return input.readShort();
            } catch (KryoException e) {
                throw maybeEndOfStream(e);
            }
        }
    
        @Override
        public float readFloat() throws EOFException, IOException {
            try {
                return input.readFloat();
            } catch (KryoException e) {
                throw maybeEndOfStream(e);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        assertEquals(0xBEBAFECA, in.readInt());
        assertEquals(0xBEBAFECAEFBEADDEL, in.readLong());
        assertEquals("Herby Derby", in.readUTF());
        assertEquals(0xBEBAFECA, Float.floatToIntBits(in.readFloat()));
        assertEquals(0xBEBAFECAEFBEADDEL, Double.doubleToLongBits(in.readDouble()));
      }
    
      public void testSkipBytes() throws IOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java

         *
         * @throws EOFException when the end of the byte stream is reached before the float value can be fully read.
         * @since 8.7
         */
        float readFloat() throws EOFException, IOException;
    
        /**
         * Reads a double value that was written with {@link Encoder#writeDouble(double)}
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/JavaObjectSerializationCodecTest.kt

                transientInt = objectInputStream.readInt()
                transientLong = objectInputStream.readLong()
                transientString = objectInputStream.readUTF()
                transientFloat = objectInputStream.readFloat()
                transientDouble = objectInputStream.readDouble()
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        byte[] data = {0x12, 0x34, 0x56, 0x78, 0x76, 0x54, 0x32, 0x10};
        ByteArrayDataInput in = ByteStreams.newDataInput(data);
        assertEquals(Float.intBitsToFloat(0x12345678), in.readFloat(), 0.0);
        assertEquals(Float.intBitsToFloat(0x76543210), in.readFloat(), 0.0);
      }
    
      public void testNewDataInput_readDouble() {
        byte[] data = {0x12, 0x34, 0x56, 0x78, 0x76, 0x54, 0x32, 0x10};
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.9K bytes
    - Viewed (0)
Back to top