Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 396 for tlen (0.02 sec)

  1. src/main/java/jcifs/pac/PacMac.java

            int ilen = data.length, olen = out.length;
            int msbit = ((ilen << 3) - 1 + ((ilen << 3) + 13) * (i / ilen) + (ilen - i % ilen << 3)) % (ilen << 3);
            int mshigh = msbit >>> 3, mslow = msbit & 7;
            int b = c + (out[i % olen] & 0xff)
                    + (((data[(ilen - 1 - mshigh) % ilen] & 0xff) << 8 | data[(ilen - mshigh) % ilen] & 0xff) >>> mslow + 1 & 0xff);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        }
    
        @Override
        public final void writeChars(final String s) throws SmbException {
            final int clen = s.length();
            final int blen = 2 * clen;
            final byte[] b = new byte[blen];
            final char[] c = new char[clen];
            s.getChars(0, clen, c, 0);
            for (int i = 0, j = 0; i < clen; i++) {
                b[j] = (byte) (c[i] >>> 8);
                j++;
                b[j++] = (byte) (c[i] >>> 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. cmd/encryption-v1_test.go

    			if err != nil {
    				t.Errorf("Case %d: unexpected err: %v", i, err)
    			}
    			rLen := pkgSz + 32
    			if test.decSz < pkgSz {
    				rLen = test.decSz + 32
    			}
    			if skip != 0 || sn != 0 || ps != 0 || o != 0 || l != rLen {
    				t.Errorf("Case %d: test failed: %d %d %d %d %d", i, o, l, skip, sn, ps)
    			}
    		}
    
    		kb32 := int64(32) * humanize.KiByte
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        }
    
        @Override
        public final void writeChars(final String s) throws SmbException {
            final int clen = s.length();
            final int blen = 2 * clen;
            final byte[] b = new byte[blen];
            final char[] c = new char[clen];
            s.getChars(0, clen, c, 0);
            for (int i = 0, j = 0; i < clen; i++) {
                b[j] = (byte) (c[i] >>> 8);
                j++;
                b[j++] = (byte) (c[i] >>> 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/RC4.java

         * @param ki the starting offset in the key array
         * @param klen the length of the key to use
         */
        public void init(final byte[] key, final int ki, final int klen) {
            s = new byte[256];
    
            for (i = 0; i < 256; i++) {
                s[i] = (byte) i;
            }
    
            for (i = j = 0; i < 256; i++) {
                j = j + key[ki + i % klen] + s[i] & 0xff;
                final byte t = s[i];
                s[i] = s[j];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteStreams.java

       * or {@code len} is negative, or {@code off+len} is greater than the length of the array {@code
       * b}, then an {@code IndexOutOfBoundsException} is thrown. If {@code len} is zero, then no bytes
       * are read. Otherwise, the first byte read is stored into element {@code b[off]}, the next one
       * into {@code b[off+1]}, and so on. The number of bytes read is, at most, equal to {@code len}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponse.java

            return 0;
        }
    
        @Override
        protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) throws SMBProtocolDecodingException {
            if (len > this.outputBuffer.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

                    SmbConstants.DEFAULT_SHARING);
    
            byte[] data = new byte[10];
    
            // When & Then - test boundary conditions
            // Negative length or offset should not cause issues (len <= 0 returns early)
            assertDoesNotThrow(() -> outputStream.write(data, 0, -1)); // negative length, returns early
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashTestUtils.java

            hashFunction.hashBytes(bytes), hashFunction.newHasher(size).putBytes(bytes).hash());
        int off = random.nextInt(size);
        int len = random.nextInt(size - off);
        assertEquals(
            hashFunction.hashBytes(bytes, off, len),
            hashFunction.newHasher(size).putBytes(bytes, off, len).hash());
      }
    
      private static void assertHashByteBufferEquivalence(HashFunction hashFunction, Random random) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  10. cmd/sts-handlers.go

    			// If there is no claim-based provider configured, then an
    			// unrecognized roleArn is an error
    			if strings.TrimSpace(iamPolicyClaimNameOpenID()) == "" {
    				writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue,
    					fmt.Errorf("Error processing %s parameter: %v", stsRoleArn, err))
    				return
    			}
    			// If there *is* a claim-based provider configured, then
    			// treat an unrecognized roleArn the same as no roleArn
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 36.6K bytes
    - Viewed (0)
Back to top