Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 286 for arrayCopy (0.43 sec)

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

                    throw new SMBProtocolDecodingException("Buffer overflow");
                }
    
                // Store the decoded data
                this.data = new byte[len];
                System.arraycopy(buffer, bufferIndex, this.data, 0, len);
    
                return len;
            }
    
            public byte[] getData() {
                return data;
            }
    
            public int getDecodeCallCount() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

        protected void haveResponse(final byte[] buffer, final int start, final int len) throws SMBProtocolDecodingException {
            if (isRetainPayload()) {
                final byte[] payload = new byte[len];
                System.arraycopy(buffer, start, payload, 0, len);
                setRawPayload(payload);
            }
    
            if (!verifySignature(buffer, start, len)) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            byte[] tempBuffer = new byte[50];
            original.encode(tempBuffer, 0);
    
            // Copy only the first 36 bytes (what decode reads)
            byte[] buffer = new byte[36];
            System.arraycopy(tempBuffer, 0, buffer, 0, 36);
    
            // Decode
            int bytesRead = fileBasicInfo.decode(buffer, 0, 36);
    
            // Verify
            assertEquals(36, bytesRead);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            String expectedDescr = "WrLeh\u0000B13BWz\u0000";
            byte[] expectedDescrBytes = expectedDescr.getBytes("ASCII");
            byte[] actualDescrBytes = new byte[expectedDescrBytes.length];
            System.arraycopy(dst, 2, actualDescrBytes, 0, expectedDescrBytes.length);
            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    
            // Verify level (0x0001 - 2 bytes)
            int descrEnd = 2 + expectedDescrBytes.length;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            if (buffer.length < bufferIndex + 16 + 4 + 4 + 4 + 4) {
                throw new SMBProtocolDecodingException("Buffer too small for server GUID and capabilities section");
            }
    
            System.arraycopy(buffer, bufferIndex, this.serverGuid, 0, 16);
            bufferIndex += 16;
    
            this.capabilities = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            byte[] filenameBytes = filename.getBytes(StandardCharsets.UTF_8);
            writeInt4(filenameBytes.length, buffer, bufferIndex + 60); // fileNameLength
    
            // Copy filename into buffer at offset 94
            System.arraycopy(filenameBytes, 0, buffer, 94, filenameBytes.length);
    
            response.dataCount = 120;
            int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

            byte[] buffer = new byte[200];
            int offset = 50;
            byte[] infoData = createMockFileBasicInfoBuffer();
            System.arraycopy(infoData, 0, buffer, offset, infoData.length);
            response.setDataCount(infoData.length);
    
            int bytesRead = response.readDataWireFormat(buffer, offset, buffer.length - offset);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

            loc.dfsReferral = this.dfsReferral;
            loc.unc = this.unc;
            if (this.addresses != null) {
                loc.addresses = new UniAddress[this.addresses.length];
                System.arraycopy(this.addresses, 0, loc.addresses, 0, this.addresses.length);
            }
            loc.addressIndex = this.addressIndex;
            loc.type = this.type;
            return loc;
        }
    
        /**
         * @param context
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/SitemapsHelperTest.java

            final byte[] xmlBytes = xml.getBytes();
            final byte[] dataWithBOM = new byte[bom.length + xmlBytes.length];
            System.arraycopy(bom, 0, dataWithBOM, 0, bom.length);
            System.arraycopy(xmlBytes, 0, dataWithBOM, bom.length, xmlBytes.length);
    
            final InputStream in = new ByteArrayInputStream(dataWithBOM);
            final SitemapSet sitemapSet = sitemapsHelper.parse(in);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 36.7K bytes
    - Viewed (0)
Back to top