Search Options

Results per page
Sort
Preferred Languages
Advance

Results 941 - 950 of 1,523 for byteEq (0.05 sec)

  1. src/main/java/jcifs/smb1/smb1/NetServerEnum2Response.java

        NetServerEnum2Response() {
        }
    
        int writeSetupWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int writeDataWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int readSetupWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java

         */
        public static final int FILE_NOTIFY_CHANGE_STREAM_WRITE = 0x800;
    
        private final byte[] fileId;
        private int outputBufferLength;
        private int notifyFlags;
        private int completionFilter;
    
    
        /**
         * @param config
         * @param fileId
         */
        public Smb2ChangeNotifyRequest ( Configuration config, byte[] fileId ) {
            super(config, SMB2_CHANGE_NOTIFY);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/request-forms-and-files.md

    ```
    
    ## 定义 `File` 与 `Form` 参数
    
    创建文件和表单参数的方式与 `Body` 和 `Query` 一样:
    
    ```Python hl_lines="8"
    {!../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    文件和表单字段作为表单数据上传与接收。
    
    声明文件可以使用 `bytes` 或 `UploadFile` 。
    
    /// warning | "警告"
    
    可在一个*路径操作*中声明多个 `File` 与 `Form` 参数,但不能同时声明要接收 JSON 的 `Body` 字段。因为此时请求体的编码为 `multipart/form-data`,不是 `application/json`。
    
    这不是 **FastAPI** 的问题,而是 HTTP 协议的规定。
    
    ///
    
    ## 小结
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. internal/handlers/forwarder.go

    }
    
    type bufPool struct {
    	sz   int
    	pool sync.Pool
    }
    
    func (b *bufPool) Put(buf []byte) {
    	if cap(buf) < b.sz || cap(buf) > b.sz*2 {
    		// Buffer too small or will likely leak memory after being expanded.
    		// Drop it.
    		return
    	}
    	b.pool.Put(&buf)
    }
    
    func (b *bufPool) Get() []byte {
    	bufp := b.pool.Get().(*[]byte)
    	return (*bufp)[:b.sz]
    }
    
    func newBufPool(sz int) httputil.BufferPool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/fscc/FileSystemInformation.java

        /**
         * 
         */
        public static final byte SMB_INFO_ALLOCATION = -1;
    
        /**
         * 
         */
        public static final byte FS_SIZE_INFO = 3;
        /**
         * 
         */
        public static final byte FS_FULL_SIZE_INFO = 7;
    
    
        /**
         * 
         * @return file system information class
         */
        byte getFileSystemInformationClass ();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  6. docs_src/request_files/tutorial001.py

    from fastapi import FastAPI, File, UploadFile
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_file(file: bytes = File()):
        return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(file: UploadFile):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 282 bytes
    - Viewed (0)
  7. docs_src/request_forms_and_files/tutorial001.py

    from fastapi import FastAPI, File, Form, UploadFile
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_file(
        file: bytes = File(), fileb: UploadFile = File(), token: str = Form()
    ):
        return {
            "file_size": len(file),
            "token": token,
            "fileb_content_type": fileb.content_type,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 317 bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/security/http-basic-auth.md

    `secrets.compare_digest()` 需要仅包含 ASCII 字符(英语字符)的 `bytes` 或 `str`,这意味着它不适用于像`á`一样的字符,如 `Sebastián`。
    
    为了解决这个问题,我们首先将 `username` 和 `password` 转换为使用 UTF-8 编码的 `bytes` 。
    
    然后我们可以使用 `secrets.compare_digest()` 来确保 `credentials.username` 是 `"stanleyjobson"`,且 `credentials.password` 是`"swordfish"`。
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. docs_src/request_files/tutorial002.py

    from typing import List
    
    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("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 811 bytes
    - Viewed (0)
  10. docs_src/request_files/tutorial002_an_py39.py

    from typing import Annotated
    
    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]}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 826 bytes
    - Viewed (0)
Back to top