Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,678 for byte (0.05 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go

    // If the value passed in is not actually a map, this will panic.
    func ByteKeySet[T any](theMap map[byte]T) Byte {
    	return Byte(KeySet(theMap))
    }
    
    // Insert adds items to the set.
    func (s Byte) Insert(items ...byte) Byte {
    	return Byte(cast(s).Insert(items...))
    }
    
    // Delete removes all items from the set.
    func (s Byte) Delete(items ...byte) Byte {
    	return Byte(cast(s).Delete(items...))
    }
    
    Registered: 2024-06-15 01:39
    - Last Modified: 2022-10-20 03:47
    - 3.9K bytes
    - Viewed (0)
  2. 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/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)
  4. guava/src/com/google/common/base/Utf8.java

            }
            int byte2 = bytes[index++];
            if (byte2 > (byte) 0xBF
                // Overlong? 5 most significant bits must not all be zero.
                || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0)
                // Check for illegal surrogate codepoints.
                || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2)
                // Third byte trailing-byte test.
                || bytes[index++] > (byte) 0xBF) {
              return false;
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-04-10 14:11
    - 7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Utf8.java

            }
            int byte2 = bytes[index++];
            if (byte2 > (byte) 0xBF
                // Overlong? 5 most significant bits must not all be zero.
                || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0)
                // Check for illegal surrogate codepoints.
                || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2)
                // Third byte trailing-byte test.
                || bytes[index++] > (byte) 0xBF) {
              return false;
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-04-10 14:11
    - 7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

       * byte order.
       *
       * @return the next four bytes of the input stream, interpreted as an {@code int} in little-endian
       *     byte order
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public int readInt() throws IOException {
        byte b1 = readAndCheckByte();
        byte b2 = readAndCheckByte();
        byte b3 = readAndCheckByte();
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-05-17 14:35
    - 7.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java

          Byte[] suffix = {(byte) 86, (byte) 99};
          Byte[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Byte[] concat(Byte[] left, Byte[] right) {
        Byte[] result = new Byte[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-06-01 09:32
    - 5.5K bytes
    - Viewed (0)
Back to top