- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 1,654 for readn (0.03 seconds)
-
docs_src/request_files/tutorial001_03_an_py310.py
app = FastAPI() @app.post("/files/") async def create_file(file: Annotated[bytes, File(description="A file read as bytes")]): return {"file_size": len(file)} @app.post("/uploadfile/") async def create_upload_file( file: Annotated[UploadFile, File(description="A file read as UploadFile")], ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 421 bytes - Click Count (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
@Override public int read(CharBuffer cbuf) throws IOException { return reader.read(cbuf); } }; } private static Reader getChunkedReader(String input, int chunk) { return new FilterReader(new StringReader(input)) { @Override public int read(char[] cbuf, int off, int len) throws IOException { return super.read(cbuf, off, min(chunk, len)); } };Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 4.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
/** * Test for the readSetupWireFormat method. * It should always return 0. */ @Test void testReadSetupWireFormat() { byte[] buffer = new byte[10]; // The method should not read anything and return 0 assertEquals(0, response.readSetupWireFormat(buffer, 0, 10), "readSetupWireFormat should return 0."); } /** * Test for the readParametersWireFormat method.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.8K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* entries may be counted in {@link Cache#size}, but will never be visible to read or write * operations. * * <p>Certain cache configurations will result in the accrual of periodic maintenance tasks which * will be performed during write operations, or during occasional read operations in the absence of * writes. The {@link Cache#cleanUp} method of the returned cache will also perform maintenance, butCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 52K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
w.start(); // Wait until writer thread is ready synchronized (w) { long deadline = System.currentTimeMillis() + 2000; while (!w.isReady() && System.currentTimeMillis() < deadline) { w.wait(10); } assertTrue(w.isReady(), "WriterThread should be ready"); // Submit a write that will throw inside the writer threadCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0) -
docs/zh-hant/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()`,之後需要再次讀取內容時特別有用。 * `close()`:關閉檔案。 由於這些都是 `async` 方法,你需要以 await 呼叫它們。 例如,在 `async` 的路徑操作函式中可這樣讀取內容: ```Python contents = await myfile.read() ``` 若是在一般的 `def` 路徑操作函式中,你可以直接存取 `UploadFile.file`,例如: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) -
src/main/webapp/js/chat.js
showEmptyState(); hideErrorBanner(); hideProgressIndicator(); showStatus('ready'); updateUI(); // Re-enable buttons and input } /** * Show status message * @param {string} status - Status type (thinking, error, ready) * @param {string} customMessage - Optional custom message to display */ function showStatus(status, customMessage) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 01:36:02 GMT 2026 - 30.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
} } /** * Performs RDMA read operation. * * @param buffer the buffer to read into * @param remoteAddress remote memory address * @param remoteKey remote access key * @param length number of bytes to read * @return number of bytes read * @throws IOException if operation fails */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 8.9K bytes - Click Count (0) -
cmd/local-locker_test.go
} if testing.Short() && readers > 10 { continue } t.Run(fmt.Sprintf("%d-read", readers), func(t *testing.T) { l := newLocker() for range locks { var tmp [16]byte rng.Read(tmp[:]) res := []string{hex.EncodeToString(tmp[:])} for range readers { rng.Read(tmp[:]) ok, err := l.RLock(t.Context(), dsync.LockArgs{ UID: uuid.NewString(),
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.8K bytes - Click Count (0)