Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 354 for wrap (0.01 sec)

  1. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

            principalVector.add(new DERTaggedObject(true, 1, new DERSequence(principalNameVector)));
            v.add(new DERTaggedObject(true, 3, new DERSequence(principalVector)));
    
            // Wrap in APPLICATION tag as expected by KerberosEncData
            DERSequence seq = new DERSequence(v);
            return new DERTaggedObject(false, BERTags.APPLICATION, 3, seq).getEncoded();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/InetAddresses.java

          addressAsLong = getEmbeddedIPv4ClientAddress(ip6).hashCode();
        } else {
          // Just extract the high 64 bits (assuming the rest is user-modifiable).
          addressAsLong = ByteBuffer.wrap(ip6.getAddress(), 0, 8).getLong();
        }
    
        // Many strategies for hashing are possible. This might suffice for now.
        int coercedHash = Hashing.murmur3_32_fixed().hashLong(addressAsLong).asInt();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbException.java

        public Throwable getRootCause() {
            return this.getCause();
        }
    
        /**
         * @param e
         * @return a CIFS exception wrapped in an SmbException
         */
        static SmbException wrap(final CIFSException e) {
            if (e instanceof SmbException) {
                return (SmbException) e;
            }
            return new SmbException(e.getMessage(), e);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.post(EVENT);
    
        List<DeadEvent> events = catcher.getEvents();
        assertEquals("One dead event should be delivered.", 1, events.size());
        assertEquals("The dead event should wrap the original event.", EVENT, events.get(0).getEvent());
      }
    
      public void testDeadEventPosting() {
        GhostCatcher catcher = new GhostCatcher();
        bus.register(catcher);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            for (int invalidSize : invalidSizes) {
                byte[] buffer = new byte[256];
    
                // Handle negative values (will wrap around in writeInt2)
                if (invalidSize >= 0) {
                    SMBUtil.writeInt2(invalidSize, buffer, 0);
    
                    // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

                msg.call_id = call_id++;
    
                msg.encode(buf);
    
                if (securityProvider != null) {
                    buf.setIndex(0);
                    securityProvider.wrap(buf);
                }
    
                tot = buf.getLength() - 24;
                off = 0;
    
                while (off < tot) {
                    n = tot - off;
    
                    if (24 + n > max_xmit) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

            void shouldReturnCorrectBytesConsumed() throws SMBProtocolDecodingException {
                // Given - larger buffer than needed
                byte[] buffer = new byte[100];
                ByteBuffer bb = ByteBuffer.wrap(buffer).order(ByteOrder.LITTLE_ENDIAN);
                bb.putLong(1000L);
                bb.putLong(500L);
                bb.putInt(8);
                bb.putInt(512);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/PairedStats.java

        checkNotNull(byteArray);
        checkArgument(
            byteArray.length == BYTES,
            "Expected PairedStats.BYTES = %s, got %s",
            BYTES,
            byteArray.length);
        ByteBuffer buffer = ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN);
        Stats xStats = Stats.readFrom(buffer);
        Stats yStats = Stats.readFrom(buffer);
        double sumOfProductsOfDeltas = buffer.getDouble();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/HandlerTest.java

            assertNotNull(conn);
            assertTrue(conn instanceof SmbFile, "Connection should be an instance of SmbFile");
            SmbFile file = (SmbFile) conn;
            assertEquals(url, file.getURL(), "Returned SmbFile should wrap the given URL");
            assertSame(mockCtx, file.getContext(), "SmbFile must use the provided CIFSContext");
            verify(mockCtx, atLeastOnce()).getConfig(); // interaction with dependency
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. misc/cgo/gmp/gmp.go

    */
    package gmp
    
    /*
    #cgo LDFLAGS: -lgmp
    #include <gmp.h>
    #include <stdlib.h>
    
    // gmp 5.0.0+ changed the type of the 3rd argument to mp_bitcnt_t,
    // so, to support older versions, we wrap these two functions.
    void _mpz_mul_2exp(mpz_ptr a, mpz_ptr b, unsigned long n) {
    	mpz_mul_2exp(a, b, n);
    }
    void _mpz_div_2exp(mpz_ptr a, mpz_ptr b, unsigned long n) {
    	mpz_div_2exp(a, b, n);
    }
    */
    import "C"
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
Back to top