Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,566 for wrote (0.02 seconds)

  1. internal/ringbuffer/ring_buffer_test.go

    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    			wrote.Write(buf[:n])
    			debugln("WRITE 4\t", n, wroteBytes)
    
    			// TryWriteByte
    			err = rb.TryWriteByte(buf[0])
    			if err != nil && err != ErrAcquireLock && err != ErrTooMuchDataToWrite && err != ErrIsFull {
    				t.Fatalf("write failed: %v", err)
    			}
    			if err == nil {
    				wroteBytes++
    				wrote.Write(buf[:1])
    				debugln("WRITE 5\t", 1, wroteBytes)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_websockets/test_tutorial003.py

            client.websocket_connect("/ws/5678") as connection_two,
        ):
            connection.send_text("Hello from 1234")
            data1 = connection.receive_text()
            assert data1 == "You wrote: Hello from 1234"
            data2 = connection_two.receive_text()
            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  3. internal/ringbuffer/ring_buffer.go

    	if len(p) == 0 {
    		return 0, r.setErr(nil, false)
    	}
    	r.mu.Lock()
    	defer r.mu.Unlock()
    	if err := r.err; err != nil {
    		if err == io.EOF {
    			err = ErrWriteOnClosed
    		}
    		return 0, err
    	}
    	wrote := 0
    	for len(p) > 0 {
    		n, err = r.write(p)
    		wrote += n
    		if !r.block || err == nil {
    			break
    		}
    		err = r.setErr(err, true)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  4. docs_src/websockets/tutorial003_py39.py

        await manager.connect(websocket)
        try:
            while True:
                data = await websocket.receive_text()
                await manager.send_personal_message(f"You wrote: {data}", websocket)
                await manager.broadcast(f"Client #{client_id} says: {data}")
        except WebSocketDisconnect:
            manager.disconnect(websocket)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.5K bytes
    - Click Count (0)
  5. tensorflow/c/c_test.c

      TF_NewWritableFile(full_path, &h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_NewWritableFile failed: %s\n", TF_Message(status));
        return 1;
      }
      fprintf(stderr, "wrote %s\n", full_path);
      free(full_path);
      TF_CloseWritableFile(h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_CloseWritableFile failed: %s\n", TF_Message(status));
      }
      TF_StringStreamDone(s);
    
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  6. docs/tls/README.md

    ```sh
    ./certgen -host "10.10.0.3,10.10.0.4,10.10.0.5"
    ```
    
    A response similar to this one should be displayed:
    
    ```
    2018/11/21 10:16:18 wrote public.crt
    2018/11/21 10:16:18 wrote private.key
    ```
    
    ### 3.2 Use OpenSSL to Generate a Certificate
    
    Use one of the following methods to generate a certificate using `openssl`:
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  7. docs/en/docs/advanced/async-tests.md

    Being able to use asynchronous functions in your tests could be useful, for example, when you're querying your database asynchronously. Imagine you want to test sending requests to your FastAPI application and then verify that your backend successfully wrote the correct data in the database, while using an async database library.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbFileOutputStream.java

         *
         * @param b the byte array containing the data to write
         * @param off the start offset in the data
         * @param len the number of bytes to write
         * @param flags write operation flags
         * @throws IOException if an I/O error occurs
         */
        public void writeDirect(final byte[] b, int off, int len, final int flags) throws IOException {
            if (len <= 0) {
                return;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  9. docs/en/docs/_llm-test.md

    Content of code snippets should be left as is.
    
    See section `### Content of code snippets` in the general prompt in `scripts/translate.py`.
    
    ////
    
    ## Quotes { #quotes }
    
    //// tab | Test
    
    Yesterday, my friend wrote: "If you spell incorrectly correctly, you have spelled it incorrectly". To which I answered: "Correct, but 'incorrectly' is incorrectly not '"incorrectly"'".
    
    /// note
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 14:48:47 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ComparisonChain.java

     * }
     *
     * <p>With method references it is more succinct: {@code comparing(Foo::aString)} for example.
     *
     * <p>Using {@link Comparator} avoids certain types of bugs, for example when you meant to write
     * {@code .compare(a.foo, b.foo)} but you actually wrote {@code .compare(a.foo, a.foo)} or {@code
     * .compare(a.foo, b.bar)}. {@code ComparisonChain} also has a potential performance problem that
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top