Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 284 for arrayCopy (0.07 sec)

  1. guava/src/com/google/common/escape/CharEscaper.java

            s.getChars(lastEscape, index, dest, destIndex);
            destIndex += charsSkipped;
          }
    
          // Copy the replacement string into the dest buffer as needed.
          if (rlen > 0) {
            System.arraycopy(r, 0, dest, destIndex, rlen);
            destIndex += rlen;
          }
          lastEscape = index + 1;
        }
    
        // Copy leftover characters if there are any.
        int charsLeft = slen - lastEscape;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.lang.System.arraycopy;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.AbstractCollection;
    import java.util.Collection;
    import java.util.Iterator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

            // Verify correct portion of data is copied
            byte[] expectedData = new byte[partialLength];
            System.arraycopy(TEST_DATA, partialOffset, expectedData, 0, partialLength);
            byte[] copiedData = new byte[partialLength];
            System.arraycopy(dst, dstIndex, copiedData, 0, partialLength);
            assertArrayEquals(expectedData, copiedData);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/MIENameTest.java

            // MECH_OID
            System.arraycopy(oidDer, 0, buf, i, oidLen);
            i += oidLen;
            // NAME_LEN (4 bytes big-endian)
            buf[i++] = (byte) ((nameLen >>> 24) & 0xFF);
            buf[i++] = (byte) ((nameLen >>> 16) & 0xFF);
            buf[i++] = (byte) ((nameLen >>> 8) & 0xFF);
            buf[i++] = (byte) (nameLen & 0xFF);
            // NAME
            System.arraycopy(nameBytes, 0, buf, i, nameLen);
            return buf;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                    }
                    System.arraycopy(str.getBytes(UNI_ENCODING), 0, dst, dstIndex, str.length() * 2);
                    dstIndex += str.length() * 2;
                    dst[dstIndex] = (byte) '\0';
                    dstIndex++;
                    dst[dstIndex++] = (byte) '\0';
                } else {
                    final byte[] b = str.getBytes(OEM_ENCODING);
                    System.arraycopy(b, 0, dst, dstIndex, b.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        Object[] array = new Object[paramCount + others.length];
        arrayCopy(array, 0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12);
        arrayCopy(array, paramCount, others);
        return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(array));
      }
    
      private static void arrayCopy(Object[] dest, int pos, Object... source) {
        System.arraycopy(source, 0, dest, pos, source.length);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                } else {
                    System.arraycopy(this.password, 0, dst, dstIndex, this.passwordLength);
                    dstIndex += this.passwordLength;
                }
            } else {
                // no password in tree connect
                dst[dstIndex++] = (byte) 0x00;
            }
            dstIndex += writeString(this.path, dst, dstIndex);
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/Type1Message.java

                    flags &= NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED ^ 0xffffffff;
                }
    
                final byte[] type1 = new byte[size];
                int pos = 0;
    
                System.arraycopy(NTLMSSP_SIGNATURE, 0, type1, 0, NTLMSSP_SIGNATURE.length);
                pos += NTLMSSP_SIGNATURE.length;
    
                writeULong(type1, pos, NTLMSSP_TYPE1);
                pos += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/Hexdump.java

                c[ci] = ':';
                ci++;
                do {
                    if (si == length) {
                        final int n = 16 - s;
                        System.arraycopy(SPACE_CHARS, 0, c, ci, n * 3);
                        ci += n * 3;
                        System.arraycopy(SPACE_CHARS, 0, d, s, n);
                        break;
                    }
                    c[ci++] = ' ';
                    i = src[srcIndex + si] & 0xFF;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

         * @param i the starting index in the array
         * @param l the number of bytes to write
         */
        public void writeOctetArray(final byte[] b, final int i, final int l) {
            System.arraycopy(b, i, buf, index, l);
            advance(l);
        }
    
        /**
         * Reads an octet array from the buffer.
         *
         * @param b the byte array to read into
         * @param i the starting index in the array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top