Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 589 for Decoder (0.09 sec)

  1. cmd/erasure-decode_test.go

    			bitrotReaders[index] = newBitrotReader(disk, nil, "testbucket", "object", tillOffset, writeAlgorithm, bitrotWriterSum(writers[index]), erasure.ShardSize())
    		}
    
    		writer := bytes.NewBuffer(nil)
    		_, err = erasure.Decode(context.Background(), writer, bitrotReaders, test.offset, test.length, test.data, nil)
    		closeBitrotReaders(bitrotReaders)
    		if err != nil && !test.shouldFail {
    			t.Errorf("Test %d: should pass but failed with: %v", i, err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

            int start = bufferIndex;
    
            if (errorCode != 0)
                return 4;
    
            try {
                securityDescriptor = new SecurityDescriptor();
                bufferIndex += securityDescriptor.decode(buffer, bufferIndex, len);
            } catch (IOException ioe) {
                throw new RuntimeException(ioe.getMessage());
            }
    
            return bufferIndex - start;
        }
        public String toString() {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/ndr/NdrShort.java

        public NdrShort(int value) {
            this.value = value & 0xFF;
        }
    
        public void encode(NdrBuffer dst) throws NdrException {
            dst.enc_ndr_short(value);
        }
        public void decode(NdrBuffer src) throws NdrException {
            value = src.dec_ndr_short();
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_security/test_tutorial006_an.py

        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    def test_security_http_basic_non_basic_credentials():
        payload = b64encode(b"johnsecret").decode("ascii")
        auth_header = f"Basic {payload}"
        response = client.get("/users/me", headers={"Authorization": auth_header})
        assert response.status_code == 401, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/ndr/NdrShort.java

            this.value = value & 0xFF;
        }
    
    
        @Override
        public void encode ( NdrBuffer dst ) throws NdrException {
            dst.enc_ndr_short(this.value);
        }
    
    
        @Override
        public void decode ( NdrBuffer src ) throws NdrException {
            this.value = src.dec_ndr_short();
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

       *
       * Otherwise if the response has a `Content-Type` header that specifies a charset, that is used
       * to determine the charset of the response bytes.
       *
       * Otherwise the response bytes are decoded as UTF-8.
       */
      fun charStream(): Reader =
        reader ?: BomAwareReader(source(), charset()).also {
          reader = it
        }
    
      /**
       * Returns the response as a string.
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/ndr/NdrHyper.java

            this.value = value;
        }
    
    
        @Override
        public void encode ( NdrBuffer dst ) throws NdrException {
            dst.enc_ndr_hyper(this.value);
        }
    
    
        @Override
        public void decode ( NdrBuffer src ) throws NdrException {
            this.value = src.dec_ndr_hyper();
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/ndr/NdrLong.java

            this.value = value;
        }
    
    
        @Override
        public void encode ( NdrBuffer dst ) throws NdrException {
            dst.enc_ndr_long(this.value);
        }
    
    
        @Override
        public void decode ( NdrBuffer src ) throws NdrException {
            this.value = src.dec_ndr_long();
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/ndr/NdrSmall.java

            this.value = value & 0xFF;
        }
    
    
        @Override
        public void encode ( NdrBuffer dst ) throws NdrException {
            dst.enc_ndr_small(this.value);
        }
    
    
        @Override
        public void decode ( NdrBuffer src ) throws NdrException {
            this.value = src.dec_ndr_small();
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

            System.out.println(Base64Util.encode(new byte[] { 'a', 'b', 'c' }));
        }
    
        /**
         * @throws Exception
         */
        public void testDecode() throws Exception {
            final byte[] decodedData = Base64Util.decode(ENCODED_DATA);
            assertEquals("1", BINARY_DATA.length, decodedData.length);
            for (int i = 0; i < decodedData.length; i++) {
                assertEquals("2", BINARY_DATA[i], decodedData[i]);
            }
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top