Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 928 for read2 (0.05 sec)

  1. src/cmd/compile/internal/test/align_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test to make sure that equality functions (and hash
    // functions) don't do unaligned reads on architectures
    // that can't do unaligned reads. See issue 46283.
    
    package test
    
    import "testing"
    
    type T1 struct {
    	x          float32
    	a, b, c, d int16 // memequal64
    }
    type T2 struct {
    	x          float32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 24 19:06:05 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. src/net/http/responsecontroller.go

    			return nil, nil, errNotSupported()
    		}
    	}
    }
    
    // SetReadDeadline sets the deadline for reading the entire request, including the body.
    // Reads from the request body after the deadline has been exceeded will return an error.
    // A zero value means no deadline.
    //
    // Setting the read deadline after it has been exceeded will not extend it.
    func (c *ResponseController) SetReadDeadline(deadline time.Time) error {
    	rw := c.rw
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

        %read0 = "tf.ReadVariableOp"(%arg0) : (tensor<!tf_type.resource<tensor<i32>>>) -> tensor<i32>
        // CHECK: %[[READ_VAR_1:[0-9]*]] = "tf.ReadVariableOp"(%arg1)
        %read1 = "tf.ReadVariableOp"(%arg1) : (tensor<!tf_type.resource<tensor<i32>>>) -> tensor<i32>
        // CHECK-NOT: tf.TPUPartitionedInputV2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
  4. internal/store/store.go

    	DelList(key []string) error
    	Open() error
    	Delete() error
    	Extension() string
    }
    
    // Key denotes the key present in the store.
    type Key struct {
    	Name   string
    	IsLast bool
    }
    
    // replayItems - Reads the items from the store and replays.
    func replayItems[I any](store Store[I], doneCh <-chan struct{}, log logger, id string) <-chan Key {
    	keyCh := make(chan Key)
    
    	go func() {
    		defer xioutil.SafeClose(keyCh)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 25 16:44:20 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BlockStore.java

         * Removes the given block from this store.
         */
        void remove(BlockPayload block);
    
        /**
         * Reads the first block from this store.
         */
        <T extends BlockPayload> T readFirst(Class<T> payloadType);
        
        /**
         * Reads a block from this store.
         */
        <T extends BlockPayload> T read(BlockPointer pos, Class<T> payloadType);
    
        /**
         * Writes a block to this store, adding the block if required.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/io/fs/readfile.go

    }
    
    // ReadFile reads the named file from the file system fs and returns its contents.
    // A successful call returns a nil error, not [io.EOF].
    // (Because ReadFile reads the whole file, the expected EOF
    // from the final Read is not treated as an error to be reported.)
    //
    // If fs implements [ReadFileFS], ReadFile calls fs.ReadFile.
    // Otherwise ReadFile calls fs.Open and uses Read and Close
    // on the returned [File].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:25:50 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. src/runtime/internal/wasitest/testdata/nonblock.go

    			defer f.Close()
    			defer wg.Done()
    
    			close(spawnWait)
    
    			<-ready
    
    			var buf [256]byte
    			n, err := f.Read(buf[:])
    			if err != nil {
    				panic(err)
    			}
    			os.Stderr.Write(buf[:n])
    		}(f)
    
    		// Spawn one goroutine at a time.
    		<-spawnWait
    	}
    
    	println("waiting")
    	close(ready)
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 26 17:59:52 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/LittleEndianDataInputStream.java

        return (int) in.skip(n);
      }
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      public int readUnsignedByte() throws IOException {
        int b1 = in.read();
        if (0 > b1) {
          throw new EOFException();
        }
    
        return b1;
      }
    
      /**
       * Reads an unsigned {@code short} as specified by {@link DataInputStream#readUnsignedShort()},
       * except using little-endian byte order.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/factory_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			ready := make(chan struct{})
    			tc.cfg.Transport.ServerList = client.Endpoints()
    			newETCD3Client = func(c storagebackend.TransportConfig) (*clientv3.Client, error) {
    				defer close(ready)
    				dummyKV := mockKV{
    					get: func(ctx context.Context) (*clientv3.GetResponse, error) {
    						select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 29 15:58:10 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  10. src/runtime/export_unix_test.go

    }
    
    type M = m
    
    var waitForSigusr1 struct {
    	rdpipe int32
    	wrpipe int32
    	mID    int64
    }
    
    // WaitForSigusr1 blocks until a SIGUSR1 is received. It calls ready
    // when it is set up to receive SIGUSR1. The ready function should
    // cause a SIGUSR1 to be sent. The r and w arguments are a pipe that
    // the signal handler can use to report when the signal is received.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 21:27:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top