Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for newDataOutput (0.1 sec)

  1. guava/src/com/google/common/io/ByteStreams.java

      public static ByteArrayDataOutput newDataOutput() {
        return newDataOutput(new ByteArrayOutputStream());
      }
    
      /**
       * Returns a new {@link ByteArrayDataOutput} instance sized to hold {@code size} bytes before
       * resizing.
       *
       * @throws IllegalArgumentException if {@code size} is negative
       */
      public static ByteArrayDataOutput newDataOutput(int size) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Chars.java

       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
       * use a shared {@link java.nio.ByteBuffer} instance, or use {@link
       * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer.
       */
      @GwtIncompatible // doesn't work
      public static byte[] toByteArray(char value) {
        return new byte[] {(byte) (value >> 8), (byte) value};
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Shorts.java

       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
       * use a shared {@link java.nio.ByteBuffer} instance, or use {@link
       * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer.
       */
      @GwtIncompatible // doesn't work
      public static byte[] toByteArray(short value) {
        return new byte[] {(byte) (value >> 8), (byte) value};
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Shorts.java

       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
       * use a shared {@link java.nio.ByteBuffer} instance, or use {@link
       * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer.
       */
      @GwtIncompatible // doesn't work
      public static byte[] toByteArray(short value) {
        return new byte[] {(byte) (value >> 8), (byte) value};
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Chars.java

       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
       * use a shared {@link java.nio.ByteBuffer} instance, or use {@link
       * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer.
       */
      @GwtIncompatible // doesn't work
      public static byte[] toByteArray(char value) {
        return new byte[] {(byte) (value >> 8), (byte) value};
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Ints.java

       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
       * use a shared {@link java.nio.ByteBuffer} instance, or use {@link
       * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer.
       */
      public static byte[] toByteArray(int value) {
        return new byte[] {
          (byte) (value >> 24), (byte) (value >> 16), (byte) (value >> 8), (byte) value
        };
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Longs.java

       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
       * use a shared {@link java.nio.ByteBuffer} instance, or use {@link
       * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer.
       */
      public static byte[] toByteArray(long value) {
        // Note that this code needs to stay compatible with GWT, which has known
        // bugs when narrowing byte casts of long values occur.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Longs.java

       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
       * use a shared {@link java.nio.ByteBuffer} instance, or use {@link
       * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer.
       */
      public static byte[] toByteArray(long value) {
        // Note that this code needs to stay compatible with GWT, which has known
        // bugs when narrowing byte casts of long values occur.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top