Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,124 for byte (0.04 sec)

  1. guava/src/com/google/common/primitives/Bytes.java

       * @param arrays zero or more {@code byte} arrays
       * @return a single array containing all the values from the source arrays, in order
       */
      public static byte[] concat(byte[]... arrays) {
        int length = 0;
        for (byte[] array : arrays) {
          length += array.length;
        }
        byte[] result = new byte[length];
        int pos = 0;
        for (byte[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-15 16:12
    - 14.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Bytes.java

       * @param arrays zero or more {@code byte} arrays
       * @return a single array containing all the values from the source arrays, in order
       */
      public static byte[] concat(byte[]... arrays) {
        int length = 0;
        for (byte[] array : arrays) {
          length += array.length;
        }
        byte[] result = new byte[length];
        int pos = 0;
        for (byte[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-15 16:12
    - 14.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

                  0x13579bdf,
                  null,
                  "df9b5713"),
              new ExpectedHashCode(
                  new byte[] {(byte) 0xcd, (byte) 0xab, (byte) 0x00, (byte) 0x00},
                  0x0000abcd,
                  null,
                  "cdab0000"),
              new ExpectedHashCode(
                  new byte[] {
                    (byte) 0xef, (byte) 0xcd, (byte) 0xab, (byte) 0x00,
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-09-06 17:04
    - 13.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        byte[] actual = new byte[bytes.length];
        in.readFully(actual);
        assertThat(actual).isEqualTo(bytes);
      }
    
      public void testNewDataInput_readFullyAndThenSome() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        byte[] actual = new byte[bytes.length * 2];
        IllegalStateException ex =
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-09-06 17:04
    - 21.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

        byte[] encode(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            return bytes.toByteArray()
        }
    
        byte[] truncate(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            def result = bytes.toByteArray()
            if (result.length < 2) {
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-04-15 16:06
    - 14.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/Utf8Test.java

        return new String(chars);
      }
    
      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
        }
        return realBytes;
      }
    
      private static void assertWellFormed(int... bytes) {
        assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-09 15:49
    - 12.7K bytes
    - Viewed (0)
  7. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java

        private static void longToBytes(long value, byte[] bytes, int offset) {
            bytes[offset] = (byte) (value & 0xFF);
            bytes[offset + 1] = (byte) ((value >>> 8) & 0xFF);
            bytes[offset + 2] = (byte) ((value >>> 16) & 0xFF);
            bytes[offset + 3] = (byte) ((value >>> 24) & 0xFF);
            bytes[offset + 4] = (byte) ((value >>> 32) & 0xFF);
            bytes[offset + 5] = (byte) ((value >>> 40) & 0xFF);
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-12-14 19:25
    - 10.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/HashCode.java

        public int bits() {
          return 64;
        }
    
        @Override
        public byte[] asBytes() {
          return new byte[] {
            (byte) hash,
            (byte) (hash >> 8),
            (byte) (hash >> 16),
            (byte) (hash >> 24),
            (byte) (hash >> 32),
            (byte) (hash >> 40),
            (byte) (hash >> 48),
            (byte) (hash >> 56)
          };
        }
    
        @Override
        public int asInt() {
    Registered: 2024-06-12 16:38
    - Last Modified: 2021-04-20 18:43
    - 12.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/HashCode.java

        public int bits() {
          return 64;
        }
    
        @Override
        public byte[] asBytes() {
          return new byte[] {
            (byte) hash,
            (byte) (hash >> 8),
            (byte) (hash >> 16),
            (byte) (hash >> 24),
            (byte) (hash >> 32),
            (byte) (hash >> 40),
            (byte) (hash >> 48),
            (byte) (hash >> 56)
          };
        }
    
        @Override
        public int asInt() {
    Registered: 2024-06-12 16:38
    - Last Modified: 2021-04-20 18:43
    - 12.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

         * @param context The local security context.
         */
        public void setContext(byte[] context) {
            this.context = context;
        }
    
        public byte[] toByteArray() {
            try {
                String targetName = getTarget();
                byte[] challenge = getChallenge();
                byte[] context = getContext();
                byte[] targetInformation = getTargetInformation();
                int flags = getFlags();
    Registered: 2024-06-12 15:45
    - Last Modified: 2019-03-22 20:39
    - 12.6K bytes
    - Viewed (0)
Back to top