Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for writeDouble (0.09 sec)

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

          writeChar(s.charAt(i));
        }
      }
    
      /**
       * Writes a {@code double} as specified by {@link DataOutputStream#writeDouble(double)}, except
       * using little-endian byte order.
       *
       * @throws IOException if an I/O error occurs
       */
      @Override
      public void writeDouble(double v) throws IOException {
        writeLong(Double.doubleToLongBits(v));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteArrayDataOutput.java

      @Override
      void writeChar(int v);
    
      @Override
      void writeInt(int v);
    
      @Override
      void writeLong(long v);
    
      @Override
      void writeFloat(float v);
    
      @Override
      void writeDouble(double v);
    
      @Override
      void writeChars(String s);
    
      @Override
      void writeUTF(String s);
    
      /**
       * @deprecated This method is dangerous as it discards the high byte of every character. For
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteArrayDataOutput.java

      @Override
      void writeChar(int v);
    
      @Override
      void writeInt(int v);
    
      @Override
      void writeLong(long v);
    
      @Override
      void writeFloat(float v);
    
      @Override
      void writeDouble(double v);
    
      @Override
      void writeChars(String s);
    
      @Override
      void writeUTF(String s);
    
      /**
       * @deprecated This method is dangerous as it discards the high byte of every character. For
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        out.writeShort((short) 50000);
        out.writeInt(0xCAFEBABE);
        out.writeLong(0xDEADBEEFCAFEBABEL);
        out.writeUTF("Herby Derby");
        out.writeFloat(Float.intBitsToFloat(0xCAFEBABE));
        out.writeDouble(Double.longBitsToDouble(0xDEADBEEFCAFEBABEL));
      }
    
      public void testReadFully() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        }
    
        @Override
        public final void writeFloat(final float v) throws SmbException {
            Encdec.enc_floatbe(v, tmp, 0);
            write(tmp, 0, 4);
        }
    
        @Override
        public final void writeDouble(final double v) throws SmbException {
            Encdec.enc_doublebe(v, tmp, 0);
            write(tmp, 0, 8);
        }
    
        @Override
        public final void writeBytes(final String s) throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

        // Write out array length
        int length = length();
        s.writeInt(length);
    
        // Write out all elements in the proper order.
        for (int i = 0; i < length; i++) {
          s.writeDouble(get(i));
        }
      }
    
      /** Reconstitutes the instance from a stream (that is, deserializes it). */
      private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AtomicDouble.java

       *
       * @serialData The current value is emitted (a {@code double}).
       */
      private void writeObject(ObjectOutputStream s) throws IOException {
        s.defaultWriteObject();
    
        s.writeDouble(get());
      }
    
      /** Reconstitutes the instance from a stream (that is, deserializes it). */
      private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
        s.defaultReadObject();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteStreams.java

          try {
            output.writeChars(s);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void writeDouble(double v) {
          try {
            output.writeDouble(v);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void writeFloat(float v) {
          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)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        @Override
        public final void writeFloat(final float v) throws SmbException {
            Encdec.enc_floatbe(v, this.tmp, 0);
            write(this.tmp, 0, 4);
        }
    
        @Override
        public final void writeDouble(final double v) throws SmbException {
            Encdec.enc_doublebe(v, this.tmp, 0);
            write(this.tmp, 0, 8);
        }
    
        @Override
        public final void writeBytes(final String s) throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            raf.writeShort(1);
            raf.writeChar('A');
            raf.writeInt(1);
            raf.writeLong(1L);
            raf.writeFloat(1.0f);
            raf.writeDouble(1.0);
    
            // Verify length counts - using times() to check exact counts
            verify(raf, times(2)).write(any(byte[].class), anyInt(), eq(2)); // short and char
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top