Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 1,517 for byteEq (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

       *
       *  * 16 bytes: either `OkHttp cache v1\n` if the persisted file is complete. This is another
       *    sequence of bytes if the file is incomplete and should not be used.
       *  * 8 bytes: *n*: upstream data size
       *  * 8 bytes: *m*: metadata size
       *  * *n* bytes: upstream data
       *  * *m* bytes: metadata
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. cmd/bucket-encryption_test.go

    			</Rule>
    			</ServerSideEncryptionConfiguration>`,
    			expectedErr: nil,
    			shouldPass:  true,
    		},
    	}
    
    	for i, tc := range testCases {
    		_, err := validateBucketSSEConfig(bytes.NewReader([]byte(tc.inputXML)))
    		if tc.shouldPass && err != nil {
    			t.Fatalf("Test case %d: Expected to succeed but got %s", i+1, err)
    		}
    
    		if !tc.shouldPass {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 14 07:59:05 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

      }
    
      @Test fun clientSimpleBinary() {
        val bytes = binaryData(256)
        data.write("827E0100".decodeHex()).write(bytes)
        clientReader.processNextFrame()
        callback.assertBinaryMessage(bytes)
      }
    
      @Test fun clientTwoFrameBinary() {
        val bytes = binaryData(200)
        data.write("0264".decodeHex()).write(bytes, 0, 100)
        data.write("8064".decodeHex()).write(bytes, 100, 100)
        clientReader.processNextFrame()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        /**
         * 
         */
        public static final byte SMB_COM_QUERY_INFORMATION = (byte) 0x08;
    
        /**
         * 
         */
        public static final byte SMB_COM_SET_INFORMATION = (byte) 0x09;
    
        /**
         * 
         */
        public static final byte SMB_COM_WRITE = (byte) 0x0B;
    
        /**
         * 
         */
        public static final byte SMB_COM_CHECK_DIRECTORY = (byte) 0x10;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    			continue
    		}
    		hdrs = append(hdrs, hdr)
    
    		// If a special flag, we should read nothing.
    		cnt, _ := io.ReadFull(tr, []byte{0})
    		if cnt > 0 && hdr.Typeflag != TypeReg {
    			t.Errorf("ReadFull(...): got %d bytes, want 0 bytes", cnt)
    		}
    	}
    
    	// File is crafted with 16 entries. The later 8 are identical to the first
    	// 8 except that the size is set.
    	if len(hdrs) != 16 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  6. internal/config/subnet/subnet.go

    )
    
    // Upload given file content (payload) to specified URL
    func (c Config) Upload(reqURL string, filename string, payload []byte) (string, error) {
    	if !c.Registered() {
    		return "", errors.New("Deployment is not registered with SUBNET. Please register the deployment via 'mc license register ALIAS'")
    	}
    
    	var body bytes.Buffer
    	writer := multipart.NewWriter(&body)
    	part, e := writer.CreateFormFile("file", filename)
    	if e != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 27 16:35:36 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. internal/s3select/select.go

    		if err != nil {
    			return err
    		}
    		if buf.Bytes()[buf.Len()-1] == '\n' {
    			buf.Truncate(buf.Len() - 1)
    		}
    		buf.WriteString(s3Select.Output.CSVArgs.RecordDelimiter)
    
    		return nil
    	case jsonFormat:
    		err := record.WriteJSON(buf)
    		if err != nil {
    			return err
    		}
    		// Trim trailing newline from non-simd output
    		if buf.Bytes()[buf.Len()-1] == '\n' {
    			buf.Truncate(buf.Len() - 1)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v2.go

    func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, err error) {
    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    	if !bytes.Equal(buf[:4], xlHeader[:]) {
    		return payload, 0, 0, fmt.Errorf("xlMeta: unknown XLv2 header, expected %v, got %v", xlHeader[:4], buf[:4])
    	}
    
    	if bytes.Equal(buf[4:8], []byte("1   ")) {
    		// Set as 1,0.
    		major, minor = 1, 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (0)
  9. src/archive/zip/reader.go

    	//
    	// dataDescriptorLen includes the size of the signature but
    	// first read just those 4 bytes to see if it exists.
    	if _, err := io.ReadFull(r, buf[:4]); err != nil {
    		return err
    	}
    	off := 0
    	maybeSig := readBuf(buf[:4])
    	if maybeSig.uint32() != dataDescriptorSignature {
    		// No data descriptor signature. Keep these four
    		// bytes.
    		off += 4
    	}
    	if _, err := io.ReadFull(r, buf[off:12]); err != nil {
    		return err
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. internal/etag/reader.go

    }
    
    // UUIDHash - use uuid to make md5sum
    type UUIDHash struct {
    	uuid []byte
    }
    
    // Write -  implement hash.Hash Write
    func (u UUIDHash) Write(p []byte) (n int, err error) {
    	return len(p), nil
    }
    
    // Sum -  implement md5.Sum
    func (u UUIDHash) Sum(b []byte) []byte {
    	return u.uuid
    }
    
    // Reset -  implement hash.Hash Reset
    func (u UUIDHash) Reset() {
    	return
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top