Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1481 - 1490 of 1,819 for else (0.02 sec)

  1. src/archive/tar/tar_test.go

    	}
    	if len(f.ops) == 0 {
    		return 0, io.EOF
    	}
    	s, ok := f.ops[0].(string)
    	if !ok {
    		return 0, errors.New("unexpected Read operation")
    	}
    
    	n := copy(b, s)
    	if len(s) > n {
    		f.ops[0] = s[n:]
    	} else {
    		f.ops = f.ops[1:]
    	}
    	f.pos += int64(len(b))
    	return n, nil
    }
    
    func (f *testFile) Write(b []byte) (int, error) {
    	if len(b) == 0 {
    		return 0, nil
    	}
    	if len(f.ops) == 0 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              FactoryMethodReturnsNullException {
        if (cls.isEnum()) {
          T[] constants = cls.getEnumConstants();
          if (constants != null && constants.length > 0) {
            return constants[0];
          } else {
            return null;
          }
        }
        TypeToken<T> type = TypeToken.of(cls);
        List<ParameterNotInstantiableException> paramErrors = new ArrayList<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

      }
    
      @Throws(IOException::class)
      fun commit(upstreamSize: Long) {
        // Write metadata to the end of the file.
        writeMetadata(upstreamSize)
        file!!.channel.force(false)
    
        // Once everything else is in place we can swap the dirty header for a clean one.
        writeHeader(PREFIX_CLEAN, upstreamSize, metadata.size.toLong())
        file!!.channel.force(false)
    
        // This file is complete.
        synchronized(this@Relay) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

                                new Smb2QueryDirectoryResponse(config, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
                        setResults(qr, new FileEntry[] { fe3 });
                        return qr;
                    } else {
                        // Third query: no more files
                        throw new SmbException(NtStatus.NT_STATUS_NO_MORE_FILES, false);
                    }
                }
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

                    : new SmbFileHandleImpl(cfg, 33, tB, "//eq/b", 0, 0, 0, 0, 0L);
    
            if (expectEqual) {
                assertEquals(hA, hB);
                assertEquals(hA.hashCode(), hB.hashCode());
            } else {
                assertNotEquals(hA, hB);
            }
    
            // Test negative case with different tree id handles
            SmbTreeHandleImpl tC = mock(SmbTreeHandleImpl.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/Type2Message.java

                            : targetName.toUpperCase().getBytes(getOEMEncoding());
                    size += targetBytes.length;
                } else {
                    flags &= 0xffffffff ^ NTLMSSP_REQUEST_TARGET;
                }
            }
    
            if (targetInformationBytes != null) {
                size += targetInformationBytes.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. cmd/bucket-listobjects-handlers.go

    		// Initiate a list objects operation inside a zip file based in the input params
    		listObjectsV2Info, err = listObjectsV2InArchive(ctx, objectAPI, bucket, prefix, token, delimiter, maxKeys, startAfter, r.Header)
    	} else {
    		// Initiate a list objects operation based on the input params.
    		// On success would return back ListObjectsInfo object to be
    		// marshaled into S3 compatible XML header.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 03 21:03:04 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/StandardTable.java

              if (!seen.containsKey(entry.getKey())) {
                seen.put(entry.getKey(), entry.getValue());
                return entry.getKey();
              }
            } else if (mapIterator.hasNext()) {
              entryIterator = mapIterator.next().entrySet().iterator();
            } else {
              return endOfData();
            }
          }
        }
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 30.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

          @Nullable Object[] localAlternatingKeysAndValues;
          int localSize = size;
          if (valueComparator == null) {
            localAlternatingKeysAndValues = alternatingKeysAndValues;
          } else {
            if (entriesUsed) {
              alternatingKeysAndValues = Arrays.copyOf(alternatingKeysAndValues, 2 * size);
            }
            localAlternatingKeysAndValues = alternatingKeysAndValues;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    through the air!  Do you think you could manage it?)  `And what
    an ignorant little girl she'll think me for asking!  No, it'll
    never do to ask:  perhaps I shall see it written up somewhere.'
    
      Down, down, down.  There was nothing else to do, so Alice soon
    began talking again.  `Dinah'll miss me very much to-night, I
    should think!'  (Dinah was the cat.)  `I hope they'll remember
    her saucer of milk at tea-time.  Dinah my dear!  I wish you were
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 145.2K bytes
    - Viewed (0)
Back to top