Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 501 - 510 of 1,758 for read0 (0.02 seconds)

  1. src/archive/tar/reader_test.go

    // Read is never called with an empty buffer.
    type testNonEmptyReader struct{ io.Reader }
    
    func (r testNonEmptyReader) Read(b []byte) (int, error) {
    	if len(b) == 0 {
    		return 0, errors.New("unexpected empty Read call")
    	}
    	return r.Reader.Read(b)
    }
    
    func TestFileReader(t *testing.T) {
    	type (
    		testRead struct { // Read(cnt) == (wantStr, wantErr)
    			cnt     int
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Dec 30 15:28:53 GMT 2025
    - 47.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            // Read the data
            int bytesRead = response.readParameterWordsWireFormat(buffer, bufferIndex);
    
            // Verify results
            assertEquals(20, bytesRead);
            assertEquals(fileAttributes, response.getAttributes());
            assertEquals(fileSize, response.getSize());
    
            // Verify time was read correctly (accounting for UTime conversion)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. docs/fr/docs/tutorial/request-files.md

    - `write(data)` : écrit `data` (`str` ou `bytes`) dans le fichier.
    - `read(size)` : lit `size` (`int`) octets/caractères du fichier.
    - `seek(offset)` : se déplace à la position d'octet `offset` (`int`) dans le fichier.
        - Par ex., `await myfile.seek(0)` irait au début du fichier.
        - C'est particulièrement utile si vous exécutez `await myfile.read()` une fois puis devez relire le contenu.
    - `close()` : ferme le fichier.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  4. docs/es/docs/tutorial/request-files.md

    * `write(data)`: Escribe `data` (`str` o `bytes`) en el archivo.
    * `read(size)`: Lee `size` (`int`) bytes/caracteres del archivo.
    * `seek(offset)`: Va a la posición de bytes `offset` (`int`) en el archivo.
        * Por ejemplo, `await myfile.seek(0)` iría al inicio del archivo.
        * Esto es especialmente útil si ejecutas `await myfile.read()` una vez y luego necesitas leer el contenido nuevamente.
    * `close()`: Cierra el archivo.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/io/ByteArrayDataInput.java

     * An extension of {@code DataInput} for reading from in-memory byte arrays; its methods offer
     * identical functionality but do not throw {@link IOException}.
     *
     * <p><b>Warning:</b> The caller is responsible for not attempting to read past the end of the
     * array. If any method encounters the end of the array prematurely, it throws {@link
     * IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 27 20:25:25 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/rdma/RdmaWorkRequest.java

        /**
         * Type of RDMA work request
         */
        public enum RequestType {
            /** Send operation */
            SEND,
            /** Receive operation */
            RECEIVE,
            /** RDMA read operation */
            READ,
            /** RDMA write operation */
            WRITE
        }
    
        private final long requestId;
        private final RequestType type;
        private final RdmaMemoryRegion memoryRegion;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  7. cmd/xl-storage-disk-id-check.go

    type diskHealthWrapper struct {
    	tracker *healthDiskCtxValue
    	r       io.Reader
    	w       io.Writer
    }
    
    func (d *diskHealthWrapper) Read(p []byte) (int, error) {
    	if d.r == nil {
    		return 0, fmt.Errorf("diskHealthWrapper: Read with no reader")
    	}
    	n, err := d.r.Read(p)
    	if err == nil || err == io.EOF && n > 0 {
    		d.tracker.logSuccess()
    	}
    	return n, err
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 25 05:41:04 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  8. fastapi/__init__.py

    """FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
    
    __version__ = "0.135.3"
    
    from starlette import status as status
    
    from .applications import FastAPI as FastAPI
    from .background import BackgroundTasks as BackgroundTasks
    from .datastructures import UploadFile as UploadFile
    from .exceptions import HTTPException as HTTPException
    from .exceptions import WebSocketException as WebSocketException
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:21:01 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  9. .github/workflows/codeql-analysis.yml

    on:
      push:
        branches: [ main, master, release ]
      schedule:
        - cron: '0 5 * * *'
    
    permissions: {}
    
    jobs:
      CodeQL-Build:
        permissions:
          actions: read  # for github/codeql-action/init to get workflow details
          contents: read  # for actions/checkout to fetch code
          security-events: write  # for github/codeql-action/analyze to upload SARIF results
        runs-on: ubuntu-latest
    
        strategy:
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Dec 11 22:12:03 GMT 2025
    - 4K bytes
    - Click Count (0)
  10. docs_src/security/tutorial005_py310.py

    
    password_hash = PasswordHash.recommended()
    
    DUMMY_HASH = password_hash.hash("dummypassword")
    
    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="token",
        scopes={"me": "Read information about the current user.", "items": "Read items."},
    )
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return password_hash.verify(plain_password, hashed_password)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 5.3K bytes
    - Click Count (0)
Back to Top