Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 284 for arrayCopy (0.61 sec)

  1. src/main/java/jcifs/smb/SpnegoContext.java

            byte[] b = new byte[len];
            if (off == 0 && token.length == len) {
                b = token;
            } else {
                System.arraycopy(token, off, b, 0, len);
            }
            return getToken(b);
        }
    
        private static SpnegoToken getToken(final byte[] token) throws SpnegoException {
            SpnegoToken spnegoToken = null;
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            assertEquals(0x07, buffer[11]);
            assertEquals(0x08, buffer[12]);
        }
    
        @Test
        void testReadOctetArray() {
            byte[] sourceData = { 0x10, 0x11, 0x12, 0x13, 0x14 };
            System.arraycopy(sourceData, 0, buffer, 0, sourceData.length);
    
            byte[] destData = new byte[5];
            ndrBuffer.readOctetArray(destData, 0, sourceData.length);
    
            assertEquals(sourceData.length, ndrBuffer.getIndex());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/HashCode.java

            retVal |= (bytes[i] & 0xFFL) << (i * 8);
          }
          return retVal;
        }
    
        @Override
        void writeBytesToImpl(byte[] dest, int offset, int maxLength) {
          System.arraycopy(bytes, 0, dest, offset, maxLength);
        }
    
        @Override
        byte[] getBytesInternal() {
          return bytes;
        }
    
        @Override
        boolean equalsSameBits(HashCode that) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SID.java

            final byte[] dst = new byte[1 + 1 + 6 + sid.sub_authority_count * 4];
            int di = 0;
            dst[di] = sid.revision;
            di++;
            dst[di++] = sid.sub_authority_count;
            System.arraycopy(sid.identifier_authority, 0, dst, di, 6);
            di += 6;
            for (int ii = 0; ii < sid.sub_authority_count; ii++) {
                jcifs.smb1.util.Encdec.enc_uint32le(sid.sub_authority[ii], dst, di);
                di += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            final int len = bufferIndex - start;
            this.length = len;
    
            if (isRetainPayload()) {
                final byte[] payload = new byte[len];
                System.arraycopy(buffer, 4, payload, 0, len);
                setRawPayload(payload);
            }
    
            if (!verifySignature(buffer, 4, len)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            int total = 0;
            for (byte[] a : arrays) {
                total += a.length;
            }
            byte[] res = new byte[total];
            int off = 0;
            for (byte[] a : arrays) {
                System.arraycopy(a, 0, res, off, a.length);
                off += a.length;
            }
            return res;
        }
    
        @Test
        @DisplayName("Read single bytes from stream with message packet")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/UniAddress.java

                    } else if (LogStream.level > 1) {
                        log.println("unknown resolver method: " + s);
                    }
                }
                resolveOrder = new int[i];
                System.arraycopy(tmp, 0, resolveOrder, 0, i);
            }
        }
    
        static class Sem {
            Sem(final int count) {
                this.count = count;
            }
    
            int count;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                // Check path starts at byte 2
                byte[] expectedPathBytes = path.getBytes(StandardCharsets.UTF_16LE);
                byte[] actualPathBytes = new byte[expectedPathBytes.length];
                System.arraycopy(dst, 2, actualPathBytes, 0, expectedPathBytes.length);
                assertArrayEquals(expectedPathBytes, actualPathBytes);
    
                // Check null terminator at the end
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. docs/smb3-features/04-directory-leasing-design.md

                int fileNameLength = readInt4(data, offset + 8);
                
                // Extract filename
                byte[] fileNameBytes = new byte[fileNameLength];
                System.arraycopy(data, offset + 12, fileNameBytes, 0, fileNameLength);
                String fileName = new String(fileNameBytes, StandardCharsets.UTF_16LE);
                
                // Convert action to our enum
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableList.java

        array[3] = e4;
        array[4] = e5;
        array[5] = e6;
        array[6] = e7;
        array[7] = e8;
        array[8] = e9;
        array[9] = e10;
        array[10] = e11;
        array[11] = e12;
        System.arraycopy(others, 0, array, 12, others.length);
        return construct(array);
      }
    
      /**
       * Returns an immutable list containing the given elements, in order. If {@code elements} is a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
Back to top