Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for readDouble (0.04 sec)

  1. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

       * little-endian byte order.
       *
       * @return the next eight bytes of the input stream, interpreted as a {@code double} in
       *     little-endian byte order
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public double readDouble() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @Override
      long readLong();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      float readFloat();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      double readDouble();
    
      @CanIgnoreReturnValue // to skip a line
      @Override
      @Nullable String readLine();
    
      @CanIgnoreReturnValue // to skip a field
      @Override
      String readUTF();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        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();
        DataOutputStream out = new DataOutputStream(baos);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if (read(tmp, 0, 4) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_floatbe(tmp, 0);
        }
    
        @Override
        public final double readDouble() throws SmbException {
            if (read(tmp, 0, 8) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_doublebe(tmp, 0);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

        s.defaultReadObject();
    
        int length = s.readInt();
        ImmutableLongArray.Builder builder = ImmutableLongArray.builder();
        for (int i = 0; i < length; i++) {
          builder.add(doubleToRawLongBits(s.readDouble()));
        }
        this.longs = new AtomicLongArray(builder.build().toArray());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AtomicDouble.java

      }
    
      /** Reconstitutes the instance from a stream (that is, deserializes it). */
      private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
        s.defaultReadObject();
    
        set(s.readDouble());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

          try {
            return input.readFloat();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public double readDouble() {
          try {
            return input.readDouble();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public @Nullable String readLine() {
          try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

                b[off + 5] = 0x00;
                b[off + 6] = 0x00;
                b[off + 7] = 0x00;
                return 8;
            }).when(raf).read(any(byte[].class), anyInt(), eq(8));
            assertEquals(1.0d, raf.readDouble(), 0.0000001);
        }
    
        @Test
        @DisplayName("readLine(): reads until newline and handles CRLF")
        void readLine_reads() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            if (read(this.tmp, 0, 4) < 0) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_floatbe(this.tmp, 0);
        }
    
        @Override
        public final double readDouble() throws SmbException {
            if (read(this.tmp, 0, 8) < 0) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_doublebe(this.tmp, 0);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top