Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 306 for copied (0.34 sec)

  1. guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(I18N.length(), copied);
      }
    
      public void testCopy_toWriter_fromReader() throws IOException {
        StringWriter writer = new StringWriter();
        long copied = CharStreams.copy(new StringReader(ASCII), writer);
        assertEquals(ASCII, writer.toString());
        assertEquals(ASCII.length(), copied);
    
        StringWriter writer2 = new StringWriter();
        copied = CharStreams.copy(new StringReader(I18N), writer2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(I18N.length(), copied);
      }
    
      public void testCopy_toWriter_fromReader() throws IOException {
        StringWriter writer = new StringWriter();
        long copied = CharStreams.copy(new StringReader(ASCII), writer);
        assertEquals(ASCII, writer.toString());
        assertEquals(ASCII.length(), copied);
    
        StringWriter writer2 = new StringWriter();
        copied = CharStreams.copy(new StringReader(I18N), writer2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/archive/tar/stat_unix.go

    		case "linux":
    			// Copied from golang.org/x/sys/unix/dev_linux.go.
    			major := uint32((dev & 0x00000000000fff00) >> 8)
    			major |= uint32((dev & 0xfffff00000000000) >> 32)
    			minor := uint32((dev & 0x00000000000000ff) >> 0)
    			minor |= uint32((dev & 0x00000ffffff00000) >> 12)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "darwin", "ios":
    			// Copied from golang.org/x/sys/unix/dev_darwin.go.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. cni/pkg/install/binaries.go

    package install
    
    import (
    	"os"
    	"path/filepath"
    
    	"istio.io/istio/pkg/file"
    	"istio.io/istio/pkg/util/sets"
    )
    
    // Copies/mirrors any files present in a single source dir to N number of target dirs
    // and returns a set of the filenames copied.
    func copyBinaries(srcDir string, targetDirs []string) (sets.String, error) {
    	copiedFilenames := sets.String{}
    	srcFiles, err := os.ReadDir(srcDir)
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Dec 11 19:10:54 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

          long oldPosition = sourceChannel.position();
          long position = oldPosition;
          long copied;
          do {
            copied = sourceChannel.transferTo(position, ZERO_COPY_CHUNK_SIZE, to);
            position += copied;
            sourceChannel.position(position);
          } while (copied > 0 || position < sourceChannel.size());
          return position - oldPosition;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    			if err != nil {
    				t.Fatalf("Test %d: %s: Failed to fetch the copied object: <ERROR> %s", i+1, instanceType, err)
    			}
    			if _, err = io.Copy(buffer, r); err != nil {
    				r.Close()
    				t.Fatalf("Test %d: %s: Failed to fetch the copied object: <ERROR> %s", i+1, instanceType, err)
    			}
    			r.Close()
    			if !bytes.Equal(testCase.data, buffer.Bytes()) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

         *
         * ## The file
         *
         * In this case we copy bytes from the file to the [sink].
         *
         * ## The buffer
         *
         * In this case the bytes are immediately copied into [sink] and the number of bytes copied is
         * returned.
         *
         * If upstream would be selected but another thread is already reading upstream this will
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    	// Copy on write
    	dst := metadata
    	var copied bool
    	delKey := func(key string) {
    		if _, ok := metadata[key]; !ok {
    			return
    		}
    		if !copied {
    			dst = make(map[string]string, len(metadata))
    			for k, v := range metadata {
    				dst[k] = v
    			}
    			copied = true
    		}
    		delete(dst, key)
    	}
    	legalHold := GetObjectLegalHoldMeta(metadata)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  9. cmd/api-response.go

    }
    
    // CopyObjectResponse container returns ETag and LastModified of the successfully copied object
    type CopyObjectResponse struct {
    	XMLName      xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CopyObjectResult" json:"-"`
    	LastModified string   // time string of format "2006-01-02T15:04:05.000Z"
    	ETag         string   // md5sum of the copied object.
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  10. guava/src/com/google/common/collect/ImmutableMapEntry.java

     * implementations.
     *
     * <p>This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but
     * not its subclasses) can be reused when copied from one ImmutableMap to another.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // unnecessary
    @ElementTypesAreNonnullByDefault
    class ImmutableMapEntry<K, V> extends ImmutableEntry<K, V> {
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top