- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 859 for 1bytes (0.03 sec)
-
cmd/data-usage_test.go
t.Fatal(err) } err = os.WriteFile(filepath.Join(base, bucket, f.name), make([]byte, f.size), os.ModePerm) if err != nil { t.Fatal(err) } } } // generateUsageTestFiles create nFolders * nFiles files of size bytes each. func generateUsageTestFiles(t *testing.T, base, bucket string, nFolders, nFiles, size int) { pl := make([]byte, size) for i := range nFolders {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 14.6K bytes - Viewed (0) -
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/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java
} /** * Gets the total number of bytes written in the copy operation * @return the totalBytesWritten */ public int getTotalBytesWritten() { return this.totalBytesWritten; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
cmd/batch-job-common-types_gen.go
} return } // MarshalMsg implements msgp.Marshaler func (z BatchJobSize) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendInt64(o, int64(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *BatchJobSize) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 int64 zb0001, bts, err = msgp.ReadInt64Bytes(bts) if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 21.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
/** * Creates a Type 3 (authentication) message in response to a Type 2 (challenge) message. * @param token the Type 2 message bytes * @return the Type 3 message bytes * @throws SmbException if an error occurs during message creation */ protected byte[] makeAuthenticate(final byte[] token) throws SmbException { try { final Type2Message msg2 = new Type2Message(token);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
} public void testMap_readWrite() throws IOException { // Test data int size = 1024; byte[] expectedBytes = new byte[size]; byte[] bytes = newPreFilledByteArray(1024); // Setup File file = createTempFile(); Files.write(bytes, file); Random random = new Random(); random.nextBytes(expectedBytes); // Test
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
} @Test @DisplayName("Test writeBytesWireFormat returns 0") void testWriteBytesWireFormat() { response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2); byte[] dst = new byte[1024]; int dstIndex = 0; int result = response.writeBytesWireFormat(dst, dstIndex); assertEquals(0, result); } @Test
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/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
void testReadULong() { byte[] a = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04 }; int result = NtlmMessage.readULong(a, 0); assertEquals(0x04030201, result, "ULong should be little‑endian"); } @Test @DisplayName("readUShort correctly interprets little endian") void testReadUShort() { byte[] a = new byte[] { (byte) 0xAA, (byte) 0xBB };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
* * @return a cryptographically secure random salt */ public byte[] generatePreauthSalt() { byte[] salt = new byte[SALT_SIZE]; secureRandom.nextBytes(salt); log.debug("Generated new preauth salt of {} bytes", salt.length); return salt; } /** * Initializes preauth integrity context for a new session. *
Registered: 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)