- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 863 for xBytes (0.03 sec)
-
docs/ko/docs/tutorial/request-files.md
파일들은 "폼 데이터"의 형태로 업로드 됩니다. *경로 작동 함수*의 매개변수를 `bytes` 로 선언하는 경우 **FastAPI**는 파일을 읽고 `bytes` 형태의 내용을 전달합니다. 이것은 전체 내용이 메모리에 저장된다는 것을 의미한다는 걸 염두하기 바랍니다. 이는 작은 크기의 파일들에 적합합니다. 어떤 경우에는 `UploadFile` 을 사용하는 것이 더 유리합니다. ## `File` 매개변수와 `UploadFile` `File` 매개변수를 `UploadFile` 타입으로 정의합니다: {* ../../docs_src/request_files/tutorial001.py hl[12] *} `UploadFile` 을 사용하는 것은 `bytes` 과 비교해 다음과 같은 장점이 있습니다: * "스풀 파일"을 사용합니다.Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
byte[] dest = new byte[4]; NtlmMessage.writeULong(dest, 0, -1); assertArrayEquals(new byte[] { -1, -1, -1, -1 }, dest, "All bytes should be 0xFF for -1"); } @Test @DisplayName("writeUShort writes little endian bytes") void testWriteUShort() { byte[] dest = new byte[2]; NtlmMessage.writeUShort(dest, 0, 0xBBAA);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java
* * @return true if the response has a body (either as bytes or file), false otherwise */ public boolean hasResponseBody() { return responseBodyBytes != null || responseBodyFile != null; } /** * Gets the response body as an InputStream. * If the response body is stored as bytes, returns a ByteArrayInputStream.Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 11.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
// Test data int size = 1024; byte[] bytes = newPreFilledByteArray(size); // Setup File file = createTempFile(); Files.write(bytes, file); // Test MappedByteBuffer actual = Files.map(file); // Verify ByteBuffer expected = ByteBuffer.wrap(bytes); assertTrue("ByteBuffers should be equal.", expected.equals(actual)); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
SMBUtil.writeInt2(20, buffer, bufferIndex + 2); // Set buffer length (FileFsSizeInformation is 24 bytes) SMBUtil.writeInt4(24, buffer, bufferIndex + 4); response = spy(response); when(response.getHeaderStart()).thenReturn(0); // Write FileFsSizeInformation data (24 bytes) SMBUtil.writeInt8(1000000, buffer, 20); // Total allocation units
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
// Default configuration private static final int DEFAULT_HASH_ALGORITHM = HASH_ALGO_SHA512; private static final int SALT_SIZE = 32; // 32 bytes as per SMB 3.1.1 spec private static final int HASH_SIZE_SHA512 = 64; // SHA-512 produces 64-byte hashes // Session-specific preauth integrity contextsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
log.debug("Data too small for compression ({} bytes), returning uncompressed", length); byte[] result = new byte[length]; System.arraycopy(data, offset, result, 0, length); return result; } if (length > MAX_COMPRESSION_SIZE) { throw new CIFSException("Data too large for compression: " + length + " bytes"); } switch (algorithm) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java
buf[0] = 0x34; // Low byte buf[1] = 0x12; // High byte int written = resp.readParameterWordsWireFormat(buf, 0); assertEquals(8, written, "Expected readParameterWordsWireFormat to advance 8 bytes"); assertEquals(0x1234L, resp.getCount(), "Count should reflect value from buffer"); } @Test public void testToStringContainsCount() { // Little-endian: count = 512 (0x0200)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
when(mockNdrBuffer.dec_ndr_small()).thenReturn((int) (byte) 0x11, (int) (byte) 0x22, // clock seq bytes (int) (byte) 0xAA, (int) (byte) 0xBB, (int) (byte) 0xCC, (int) (byte) 0xDD, (int) (byte) 0xEE, (int) (byte) 0xFF // node bytes ); when(mockNdrBuffer.derive(anyInt())).thenReturn(mockNdrBuffer); // When: Decoding the UUID
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Then // The writeBytesWireFormat writes the structure and calculates padding // Base structure: 24 bytes, then pad8 alignment, then token: 5 bytes // Total bytes written includes padding for 8-byte alignment int expectedBytesWritten = 35; assertEquals(expectedBytesWritten, bytesWritten); // Verify structureRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0)