Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 566 for decodes (0.06 sec)

  1. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testRoundTripHashCodeUsingBaseEncoding() {
        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString()));
        assertEquals(hash1, hash2);
      }
    
      public void testObjectHashCode() {
        HashCode hashCode42 = HashCode.fromInt(42);
        assertEquals(42, hashCode42.hashCode());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/GraphConnections.java

       * Add {@code node} as a predecessor to the origin node. In the case of an undirected graph, it
       * also becomes a successor. Associates {@code value} with the edge connecting the two nodes.
       */
      void addPredecessor(N node, V value);
    
      /**
       * Add {@code node} as a successor to the origin node. In the case of an undirected graph, it also
       * becomes a predecessor. Associates {@code value} with the edge connecting the two nodes. Returns
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. samples/slack/src/main/java/okhttp3/slack/RtmSession.java

      //                the body from slack is a 0-byte-buffer
      @Override public synchronized void onOpen(WebSocket webSocket, Response response) {
        System.out.println("onOpen: " + response);
      }
    
      // TOOD(jwilson): decode incoming messages and dispatch them somewhere.
      @Override public void onMessage(WebSocket webSocket, String text) {
        System.out.println("onMessage: " + text);
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Nov 19 20:16:58 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

    import okhttp3.recipes.kt.WireSharkListenerFactory.WireSharkKeyLoggerListener.Launch.Gui
    import okio.ByteString.Companion.toByteString
    
    /**
     * Logs SSL keys to a log file, allowing Wireshark to decode traffic and be examined with http2
     * filter. The approach is to hook into JSSE log events for the messages between client and server
     * during handshake, and then take the agreed masterSecret from private fields of the session.
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

        void testEncode() {
            byte[] buffer = new byte[1024];
            int length = response.encode(buffer, 0);
            assertTrue(length >= 0);
        }
    
        @Test
        @DisplayName("Test decode operation")
        void testDecode() {
            byte[] buffer = new byte[1024];
            // Fill with basic SMB header structure
            System.arraycopy(new byte[] { (byte) 0xFF, 'S', 'M', 'B' }, 0, buffer, 0, 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/RequestTest.java

            @Override
            public Integer getOverrideTimeout() {
                return null;
            }
    
            // Methods from CommonServerMessageBlock interface
            @Override
            public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                return 0;
            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
                return 0;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. cmd/storage-datatypes_test.go

    	gob.NewEncoder(&buf).Encode(v)
    	encoded := buf.Bytes()
    	b.Log("Size:", buf.Len(), "bytes")
    	b.SetBytes(1)
    	b.ReportAllocs()
    
    	for b.Loop() {
    		dec := gob.NewDecoder(bytes.NewBuffer(encoded))
    		err := dec.Decode(&v)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func BenchmarkEncodeDiskInfoMsgp(b *testing.B) {
    	v := DiskInfo{
    		Total:     1000,
    		Free:      1000,
    		Used:      1000,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/SMBProtocolDecodingException.java

     */
    package jcifs.internal;
    
    import jcifs.CIFSException;
    
    /**
     * Exception thrown when errors occur during SMB protocol message decoding.
     * Indicates that an SMB message could not be properly parsed or decoded due to
     * malformed data, protocol violations, or unsupported message formats.
     *
     * @author mbechler
     */
    public class SMBProtocolDecodingException extends CIFSException {
    
        /**
         *
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/pac/PACDecodingException.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.pac;
    
    import jcifs.CIFSException;
    
    /**
     * Exception thrown when PAC (Privilege Attribute Certificate) data cannot be decoded.
     * Indicates malformed or invalid PAC structures in Kerberos tickets.
     */
    public class PACDecodingException extends CIFSException {
    
        private static final long serialVersionUID = 1L;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java

        }
    
        /**
         * Gets the lease flags from the server response
         * @return the lease flags
         */
        public int getLeaseFlags() {
            return leaseFlags;
        }
    
        @Override
        public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
            int start = bufferIndex;
    
            if (len < 32) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top