Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,232 for byte (0.06 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. src/internal/fuzz/mutators_byteslice_test.go

    		name     string
    		mutator  func(*mutator, []byte) []byte
    		randVals []int
    		input    []byte
    		expected []byte
    	}{
    		{
    			name:     "byteSliceRemoveBytes",
    			mutator:  byteSliceRemoveBytes,
    			input:    []byte{1, 2, 3, 4},
    			expected: []byte{4},
    		},
    		{
    			name:     "byteSliceInsertRandomBytes",
    			mutator:  byteSliceInsertRandomBytes,
    			input:    make([]byte, 4, 8),
    			expected: []byte{3, 4, 5, 0, 0, 0, 0},
    Registered: 2024-06-12 16:32
    - Last Modified: 2021-11-19 18:23
    - 4.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/shell_test.go

    	f.Add([]byte(`escaped\ space`))
    	f.Add([]byte(`"unterminated quote`))
    	f.Add([]byte(`'unterminated quote`))
    	f.Add([]byte(`unterminated escape\`))
    	f.Add([]byte(`"quote with unterminated escape\`))
    	f.Add([]byte(`'quoted "double quotes"'`))
    	f.Add([]byte(`"quoted 'single quotes'"`))
    	f.Add([]byte(`"\$0"`))
    	f.Add([]byte(`"\$\0"`))
    	f.Add([]byte(`"\$"`))
    	f.Add([]byte(`"\$ "`))
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-02-15 15:30
    - 4.5K bytes
    - Viewed (0)
  8. src/crypto/aes/gcm_ppc64x.go

    }
    
    func gcmLengths(len0, len1 uint64) [16]byte {
    	return [16]byte{
    		byte(len0 >> 56),
    		byte(len0 >> 48),
    		byte(len0 >> 40),
    		byte(len0 >> 32),
    		byte(len0 >> 24),
    		byte(len0 >> 16),
    		byte(len0 >> 8),
    		byte(len0),
    		byte(len1 >> 56),
    		byte(len1 >> 48),
    		byte(len1 >> 40),
    		byte(len1 >> 32),
    		byte(len1 >> 24),
    		byte(len1 >> 16),
    		byte(len1 >> 8),
    		byte(len1),
    	}
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-13 18:57
    - 6.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

      public void testBytes() {
        TestHasher hasher = new TestHasher(); // byte order insignificant here
        byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8};
        hasher.putByte((byte) 1);
        hasher.putBytes(new byte[] {2, 3, 4, 5, 6});
        hasher.putByte((byte) 7);
        hasher.putBytes(new byte[] {});
        hasher.putBytes(new byte[] {8});
        hasher.assertBytes(expected);
      }
    
      public void testShort() {
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-09-06 17:04
    - 3.8K bytes
    - Viewed (0)
  10. 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)
Back to top