Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 90 for filesize (0.04 sec)

  1. internal/grid/msg_gen.go

    func (z *pongMsg) Msgsize() (s int) {
    	s = 1 + 3 + msgp.BoolSize + 2
    	if z.Err == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.StringPrefixSize + len(*z.Err)
    	}
    	s += 2 + msgp.TimeSize
    	return
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. cmd/local-locker_gen.go

    func (z *lockStats) Msgsize() (s int) {
    	s = 1 + 6 + msgp.IntSize + 7 + msgp.IntSize + 6 + msgp.IntSize + 10 + msgp.IntSize + 15 + msgp.IntSize + 12
    	if z.LastCleanup == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.TimeSize
    	}
    	return
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  3. 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)
  4. docs_src/request_files/tutorial002_an_py39.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: Annotated[list[bytes], File()]):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: list[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 826 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_files/test_tutorial001_03.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, 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: Wed Dec 17 20:41:43 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. docs_src/request_files/tutorial002_py39.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: list[bytes] = File()):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: list[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 786 bytes
    - Viewed (0)
  7. 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)
  8. docs_src/request_files/tutorial003_an_py39.py

    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(
        files: Annotated[list[bytes], File(description="Multiple files as bytes")],
    ):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(
        files: Annotated[
            list[UploadFile], File(description="Multiple files as UploadFile")
        ],
    ):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 952 bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            long time = System.currentTimeMillis();
            BigInteger filetime = BigInteger.valueOf(time)
                    .add(BigInteger.valueOf(SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601))
                    .multiply(BigInteger.valueOf(10000L));
    
            byte[] data = new byte[8];
            long low = filetime.longValue();
            long high = filetime.shiftRight(32).longValue();
    
            // write little-endian
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom_gen.go

    func (z *PoolStatus) Msgsize() (s int) {
    	s = 1 + 3 + msgp.IntSize + 3 + msgp.StringPrefixSize + len(z.CmdLine) + 3 + msgp.TimeSize + 4
    	if z.Decommission == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.Decommission.Msgsize()
    	}
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *decomError) DecodeMsg(dc *msgp.Reader) (err error) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 26.7K bytes
    - Viewed (0)
Back to top