- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 54 for fileSize (1.49 sec)
-
src/main/java/jcifs/ntlmssp/av/AvTimestamp.java
super(AvPair.MsvAvTimestamp, raw); } /** * Constructs an AvTimestamp with the specified timestamp value * * @param ts the timestamp value in Windows FILETIME format */ public AvTimestamp(final long ts) { this(encode(ts)); } /** * @param ts * @return */ private static byte[] encode(final long ts) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.9K bytes - Viewed (0) -
docs/resiliency/resiliency-tests.sh
UUID=$(echo $UUID | cut -d " " -f 9 | cut -d "/" -f 6) # Determine head and tail size of file where we will introduce bitrot FILE_SIZE=$(docker exec resiliency-minio$NODE-1 /bin/sh -c "stat --printf="%s" $DIR/test-bucket/initial-data/$FILE/$UUID/part.1") TAIL_SIZE=$((FILE_SIZE - 32 * 2)) # Extract head and tail of file
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Dec 21 04:24:45 UTC 2024 - 20.5K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02.py
path.write_bytes(b"<file content>") with path.open("rb") as file: response = client.post("/files/", files={"file": file}) assert response.status_code == 200, response.text assert response.json() == {"file_size": 14} def test_post_upload_file(tmp_path: Path, client: TestClient): path = tmp_path / "test.txt" path.write_bytes(b"<file content>") with path.open("rb") as file:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py
data={"token": "foo"}, files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")}, ) assert response.status_code == 200, response.text assert response.json() == { "file_size": 14, "token": "foo", "fileb_content_type": "text/plain", } def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
int bytesRead = response.readBytesWireFormat(buffer, 0); // Then assertEquals(60, bytesRead); assertEquals(0, response.getCloseFlags()); // Zero Windows FileTime converts to negative Unix time long expectedTime = -SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601; assertEquals(expectedTime, response.getCreationTime());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java
// Response sequence number (64-bit) responseSequenceNumber = buf.dec_ndr_hyper(); // Heartbeat interval (64-bit, in 100-nanosecond intervals) // Convert from FILETIME intervals to milliseconds long filetimeInterval = buf.dec_ndr_hyper(); heartbeatInterval = filetimeInterval / 10000; // Convert to milliseconds }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
/** * Decodes a resource change notification message. */ private void decodeResourceChangeMessage(NdrBuffer buf, WitnessNotificationMessage message) throws NdrException { // Timestamp (FILETIME - 64-bit) long timestamp = buf.dec_ndr_hyper(); message.setTimestamp(timestamp); // Resource name String resourceName = decodeWideStringPointer(buf);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 16.4K bytes - Viewed (0) -
fastapi/datastructures.py
from typing import Annotated from fastapi import FastAPI, File, UploadFile app = FastAPI() @app.post("/files/") async def create_file(file: Annotated[bytes, File()]): return {"file_size": len(file)} @app.post("/uploadfile/") async def create_upload_file(file: UploadFile): return {"filename": file.filename} ``` """ file: Annotated[ BinaryIO,Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
byte[] buffer = new byte[8]; ServerMessageBlock.writeTime(0, buffer, 0); // When zero is written, it stays as zero in buffer // When read back, it converts to negative Unix time due to Windows FileTime conversion long expectedTime = -SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601; assertEquals(expectedTime, ServerMessageBlock.readTime(buffer, 0)); } @Test void testUTimeReadWrite() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
// Note: When encoding time 0, SMBUtil.writeTime writes 0 directly, // but SMBUtil.readTime interprets 0 as Jan 1, 1601 in Unix time (-11644473600000) // This is the expected behavior for Windows FILETIME long expectedTime = -11644473600000L; // Jan 1, 1601 in Unix time assertEquals(expectedTime, decoded.getCreateTime()); assertEquals(expectedTime, decoded.getLastAccessTime());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)