Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 207 for Peek (0.02 seconds)

  1. docs/zh/docs/tutorial/request-files.md

    `UploadFile` 具有以下 `async` 方法。它们都会在底层调用对应的文件方法(使用内部的 `SpooledTemporaryFile`)。
    
    * `write(data)`:将 `data` (`str` 或 `bytes`) 写入文件。
    * `read(size)`:读取文件中 `size` (`int`) 个字节/字符。
    * `seek(offset)`:移动到文件中字节位置 `offset` (`int`)。
        * 例如,`await myfile.seek(0)` 会移动到文件开头。
        * 如果你先运行过 `await myfile.read()`,然后需要再次读取内容时,这尤其有用。
    * `close()`:关闭文件。
    
    由于这些方法都是 `async` 方法,你需要对它们使用 await。
    
    例如,在 `async` *路径操作函数* 内,你可以这样获取内容:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  2. internal/ioutil/ioutil_test.go

    	if !errors.Is(err, io.ErrUnexpectedEOF) {
    		t.Errorf("Expected io.ErrUnexpectedEOF, but got %v", err)
    	}
    	if written != 5 {
    		t.Errorf("Expected written to be '5', but got %v", written)
    	}
    
    	f.Seek(0, io.SeekStart)
    	r.Seek(0, io.SeekStart)
    
    	written, err = CopyAligned(f, r, *bufp, r.Size(), f)
    	if !errors.Is(err, nil) {
    		t.Errorf("Expected nil, but got %v", err)
    	}
    	if written != r.Size() {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/request-files.md

    * `write(data)`: Writes `data` (`str` or `bytes`) to the file.
    * `read(size)`: Reads `size` (`int`) bytes/characters of the file.
    * `seek(offset)`: Goes to the byte position `offset` (`int`) in the file.
        * E.g., `await myfile.seek(0)` would go to the start of the file.
        * This is especially useful if you run `await myfile.read()` once and then need to read the contents again.
    * `close()`: Closes the file.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/request-files.md

    * `write(data)`: Escreve `data` (`str` ou `bytes`) no arquivo.
    * `read(size)`: Lê `size` (`int`) bytes/caracteres do arquivo.
    * `seek(offset)`: Vai para o byte na posição `offset` (`int`) no arquivo.
        * Por exemplo, `await myfile.seek(0)` irá para o início do arquivo.
        * Isso é especialmente útil se você executar `await myfile.read()` uma vez e precisar ler o conteúdo novamente.
    * `close()`: Fecha o arquivo.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/request-files.md

    * `write(data)`: Dosyaya `data` (`str` veya `bytes`) yazar.
    * `read(size)`: Dosyadan `size` (`int`) kadar byte/karakter okur.
    * `seek(offset)`: Dosyada `offset` (`int`) byte pozisyonuna gider.
        * Örn. `await myfile.seek(0)` dosyanın başına gider.
        * Bu, özellikle bir kez `await myfile.read()` çalıştırdıysanız ve sonra içeriği yeniden okumaya ihtiyaç duyuyorsanız faydalıdır.
    * `close()`: Dosyayı kapatır.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndXResponse.java

            super(config);
        }
    
        /**
         * Constructs an Open AndX response with a chained response.
         *
         * @param config the configuration
         * @param andxResp the chained seek response
         */
        public SmbComOpenAndXResponse(final Configuration config, final SmbComSeekResponse andxResp) {
            super(config, andxResp);
        }
    
        /**
         * Gets the file identifier.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  7. .github/ISSUE_TEMPLATE/10_contributor_bug_report.yml

    labels: [ "a:bug", "to-triage" ]
    assignees: [ ]
    body:
      - type: markdown
        attributes:
          value: |
            Please follow the instructions below.
            We receive dozens of issues every week, so to stay productive, we will close issues that don't provide enough information.
    
            If you need help with Gradle or have a usage question, please reach [our community](http://help.gradle.org/) instead of creating an issue.
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Sep 09 14:48:49 GMT 2024
    - 3K bytes
    - Click Count (1)
  8. docs/zh-hant/docs/tutorial/request-files.md

    `UploadFile` 有以下 `async` 方法。它們底層會呼叫對應的檔案方法(使用內部的 `SpooledTemporaryFile`)。
    
    * `write(data)`:將 `data` (`str` 或 `bytes`) 寫入檔案。
    * `read(size)`:讀取檔案的 `size` (`int`) 個位元組/字元。
    * `seek(offset)`:移動到檔案中的位元組位置 `offset` (`int`)。
        * 例如,`await myfile.seek(0)` 會移到檔案開頭。
        * 當你已經執行過 `await myfile.read()`,之後需要再次讀取內容時特別有用。
    * `close()`:關閉檔案。
    
    由於這些都是 `async` 方法,你需要以 await 呼叫它們。
    
    例如,在 `async` 的路徑操作函式中可這樣讀取內容:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  9. docs/ru/docs/tutorial/request-files.md

    * `write(data)`: Записать данные `data` (`str` или `bytes`) в файл.
    * `read(size)`: Прочитать количество `size` (`int`) байт/символов из файла.
    * `seek(offset)`: Перейти к байту на позиции `offset` (`int`) в файле.
        * Например, `await myfile.seek(0)` перейдет к началу файла.
        * Это особенно удобно, если вы один раз выполнили команду `await myfile.read()`, а затем вам нужно прочитать содержимое файла еще раз.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  10. src/archive/tar/writer.go

    	default:
    		return n, nil
    	}
    }
    
    func (sw *sparseFileWriter) ReadFrom(r io.Reader) (n int64, err error) {
    	rs, ok := r.(io.ReadSeeker)
    	if ok {
    		if _, err := rs.Seek(0, io.SeekCurrent); err != nil {
    			ok = false // Not all io.Seeker can really seek
    		}
    	}
    	if !ok {
    		return io.Copy(struct{ io.Writer }{sw}, r)
    	}
    
    	var readLastByte bool
    	pos0 := sw.pos
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Feb 03 16:38:43 GMT 2025
    - 19.7K bytes
    - Click Count (0)
Back to Top