Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 748 for Encoded (0.04 seconds)

  1. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(newFlags, leaseContext.getLeaseFlags());
        }
    
        @Test
        @DisplayName("Should encode context correctly")
        void testEncode() {
            byte[] buffer = new byte[leaseContext.size()];
            int encoded = leaseContext.encode(buffer, 0);
    
            assertEquals(leaseContext.size(), encoded);
    
            // Verify context header structure according to MS-SMB2
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 00:16:17 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Credentials.kt

    import okio.ByteString.Companion.encode
    
    /** Factory for HTTP authorization credentials. */
    object Credentials {
      /** Returns an auth credential for the Basic scheme. */
      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
        password: String,
        charset: Charset = ISO_8859_1,
      ): String {
        val usernameAndPassword = "$username:$password"
        val encoded = usernameAndPassword.encode(charset).base64()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

                byte[] buffer = new byte[8];
                int encoded = original.encode(buffer, 0);
    
                assertEquals(8, encoded);
    
                // Decode into new instance
                FileEndOfFileInformation decoded = new FileEndOfFileInformation();
                int decodedBytes = decoded.decode(buffer, 0, buffer.length);
    
                assertEquals(8, decodedBytes);
    
                // Verify values match
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

            decoded.decode(buf);
            assertEquals(val, decoded.value, "Decoded value should match encoded value for " + Long.toHexString(val));
        }
    
        /**
         * Ensure encode throws NPE when passed a null buffer.
         */
        @Test
        @DisplayName("Encode with null buffer throws NullPointerException")
        public void testEncodeNullBuffer() throws NdrException {
            NdrHyper hyper = new NdrHyper(5L);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            @DisplayName("Various flag combinations encode and parse correctly")
            void testFlagCombinations(int flags) throws Exception {
                NegTokenInit init = new NegTokenInit(new ASN1ObjectIdentifier[] { OID_KRB }, flags, null, null);
    
                byte[] encoded = init.toByteArray();
                NegTokenInit parsed = new NegTokenInit(encoded);
    
                assertEquals(flags, parsed.getContextFlags());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21K bytes
    - Click Count (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

            vector.add(new DERTaggedObject(10, new DERSequence(authDataVector)));
    
            DERSequence sequence = new DERSequence(vector);
            byte[] encoded = new DERTaggedObject(false, BERTags.APPLICATION, 1, sequence).getEncoded();
    
            KerberosEncData encData = new KerberosEncData(encoded, Collections.emptyMap());
    
            assertEquals("TEST.REALM", encData.getUserRealm());
            assertEquals("testuser", encData.getUserPrincipalName());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  7. docs/bucket/versioning/DESIGN.md

     UsesDataDir = 1 << 1
     InlineData  = 1 << 2
    )
    ```
    
    The "Metadata" section contains a single version, encoded in similar fashion as each version in the `Versions` array
    of the previous version.
    
    ## Inline Data
    
    Inline data is optional. If no inline data is present, it is encoded as 0 bytes.
    
    | Entry               | Encoding                    | Content
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jul 17 15:43:14 GMT 2022
    - 5.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            // Test encoding/decoding
            byte[] encoded = nic.encode();
            assertNotNull(encoded);
            assertEquals(Smb2ChannelCapabilities.NETWORK_INTERFACE_INFO_SIZE, encoded.length);
    
            NetworkInterfaceInfo decoded = NetworkInterfaceInfo.decode(encoded, 0);
            assertEquals(nic.getInterfaceIndex(), decoded.getInterfaceIndex());
            assertEquals(nic.getLinkSpeed(), decoded.getLinkSpeed());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  9. internal/hash/checksum.go

    	}
    	return map[string]string{
    		c.Type.String():       c.Encoded,
    		xhttp.AmzChecksumType: c.Type.ObjType(),
    	}
    }
    
    // Equal returns whether two checksum structs are equal in all their fields.
    func (c *Checksum) Equal(s *Checksum) bool {
    	if c == nil || s == nil {
    		return c == s
    	}
    	return c.Type == s.Type &&
    		c.Encoded == s.Encoded &&
    		bytes.Equal(c.Raw, s.Raw) &&
    		c.WantParts == s.WantParts
    }
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 22 14:15:21 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  10. src/bytes/bytes.go

    // ContainsAny reports whether any of the UTF-8-encoded code points in chars are within b.
    func ContainsAny(b []byte, chars string) bool {
    	return IndexAny(b, chars) >= 0
    }
    
    // ContainsRune reports whether the rune is contained in the UTF-8-encoded byte slice b.
    func ContainsRune(b []byte, r rune) bool {
    	return IndexRune(b, r) >= 0
    }
    
    // ContainsFunc reports whether any of the UTF-8-encoded code points r within b satisfy f(r).
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 16:42:15 GMT 2025
    - 35.5K bytes
    - Click Count (0)
Back to Top