Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 943 for aBytes (0.05 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        /** Sets the response body to the UTF-8 encoded bytes of [body]. */
        public fun body(body: String): Builder = body(Buffer().writeUtf8(body))
    
        public fun socketHandler(socketHandler: SocketHandler): Builder =
          apply {
            this.socketHandler = socketHandler
          }
    
        /**
         * Sets the response body to [body], chunked every [maxChunkSize] bytes.
         */
        public fun chunkedBody(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/ChecksumHashFunction.java

          this.checksum = checkNotNull(checksum);
        }
    
        @Override
        protected void update(byte b) {
          checksum.update(b);
        }
    
        @Override
        protected void update(byte[] bytes, int off, int len) {
          checksum.update(bytes, off, len);
        }
    
        @Override
        @J2ObjCIncompatible
        protected void update(ByteBuffer b) {
          if (!ChecksumMethodHandles.updateByteBuffer(checksum, b)) {
            super.update(b);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2Constants.java

     *
     * @author mbechler
     */
    public final class Smb2Constants {
    
        /**
         *
         */
        private Smb2Constants() {
        }
    
        /**
         * SMB2 header length in bytes
         */
        public static final int SMB2_HEADER_LENGTH = 64;
    
        /**
         * SMB2 negotiate flag indicating signing is enabled
         */
        public static final int SMB2_NEGOTIATE_SIGNING_ENABLED = 0x0001;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/response-directly.md

    Por exemplo, você não pode colocar um modelo do Pydantic em uma `JSONResponse` sem antes convertê-lo em um `dict` com todos os tipos de dados (como `datetime`, `UUID`, etc) convertidos para tipos compatíveis com JSON.
    
    Para esses casos, você pode usar o `jsonable_encoder` para converter seus dados antes de repassá-los para a resposta:
    
    {* ../../docs_src/response_directly/tutorial001.py hl[6:7,21:22] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. src/cmd/addr2line/addr2line_test.go

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"bufio"
    	"bytes"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    // TestMain executes the test binary as the addr2line command if
    // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java

         */
        public SrvCopyChunkCopyResponse() {
        }
    
        private int chunksWritten;
        private int chunkBytesWritten;
        private int totalBytesWritten;
    
        /**
         * Gets the number of bytes written in the last chunk
         * @return the chunkBytesWritten
         */
        public int getChunkBytesWritten() {
            return this.chunkBytesWritten;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common_test.go

    	}
    
    	object := "object"
    	data := bytes.Repeat([]byte("a"), smallFileThreshold*32)
    	z := obj.(*erasureServerPools)
    
    	erasureDisks, err := z.GetDisks(0, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for i, test := range testCases {
    		t.Run(fmt.Sprintf("case-%d", i), func(t *testing.T) {
    			_, err = obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader(data), int64(len(data)), "", ""), ObjectOptions{})
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top