Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 923 for length (0.27 sec)

  1. android/guava/src/com/google/common/collect/ObjectArrays.java

       */
      static @Nullable Object[] copyAsObjectArray(@Nullable Object[] elements, int offset, int length) {
        checkPositionIndexes(offset, offset + length, elements.length);
        if (length == 0) {
          return new Object[0];
        }
        @Nullable Object[] result = new Object[length];
        System.arraycopy(elements, offset, result, 0, length);
        return result;
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

      int count;
    
      @Param({"1", "10"})
      int length;
    
      private String originalString;
    
      @BeforeExperiment
      void setUp() {
        originalString = Strings.repeat("x", length);
      }
    
      @Benchmark
      void oldRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = oldRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SigningDigest.java

         *
         * @param data The data.
         * @param offset The starting offset at which the SMB header begins.
         * @param length The length of the SMB data starting at offset. 
         */
        void sign(byte[] data, int offset, int length,
                    ServerMessageBlock request, ServerMessageBlock response) {
            request.signSeq = signSequence;
            if( response != null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          String[] suffix = {"f", "g"};
          String[] all = new String[elements.length + suffix.length];
          System.arraycopy(elements, 0, all, 0, elements.length);
          System.arraycopy(suffix, 0, all, elements.length, suffix.length);
          return ImmutableList.copyOf(all).subList(0, elements.length);
        }
      }
    
      public static class ImmutableListTailSubListGenerator extends TestStringListGenerator {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

            writeHeaderWireFormat( dst, dstIndex );
            return HEADER_LENGTH + length;
        }
        int readWireFormat( InputStream in, byte[] buffer, int bufferIndex ) throws IOException {
            readHeaderWireFormat( in, buffer, bufferIndex );
            return HEADER_LENGTH + readTrailerWireFormat( in, buffer, bufferIndex );
        }
        int writeHeaderWireFormat( byte[] dst, int dstIndex ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 4.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            if (isDirect) {
                out.writeDirect( buf, off, length, 1 );
                return;
            }
            out.write(buf, off, length);
        }
        protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
            int off, flags, length;
    
            if (buf.length < max_recv)
                throw new IllegalArgumentException("buffer too small");
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Fingerprint2011.java

          result = murmurHash64WithSeed(bytes, offset, length, K0 ^ K1 ^ K2);
        } else if (length <= 64) {
          result = hashLength33To64(bytes, offset, length);
        } else {
          result = fullFingerprint(bytes, offset, length);
        }
    
        long u = length >= 8 ? load64(bytes, offset) : K0;
        long v = length >= 9 ? load64(bytes, offset + length - 8) : K0;
        result = hash128to64(result + v, u);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Dec 28 17:50:25 GMT 2021
    - 6.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            if ( buf[ 0 ] != 5 || buf[ 1 ] != 0 ) {
                throw new IOException("Unexpected DCERPC PDU header");
            }
    
            int length = Encdec.dec_uint16le(buf, 8);
            if ( length > getMaxRecv() ) {
                throw new IOException("Unexpected fragment length: " + length);
            }
    
            while ( off < length ) {
                int r = this.handle.recv(buf, off, length - off);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jan 26 11:51:07 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

      private static long fingerprint(byte[] bytes) {
        return fingerprint(bytes, bytes.length);
      }
    
      /** Convenience method to compute a fingerprint on a subset of a byte array. */
      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/PacUnicodeString.java

    public class PacUnicodeString {
    
        private short length;
        private short maxLength;
        private int pointer;
    
    
        public PacUnicodeString ( short length, short maxLength, int pointer ) {
            super();
            this.length = length;
            this.maxLength = maxLength;
            this.pointer = pointer;
        }
    
    
        public short getLength () {
            return this.length;
        }
    
    
        public short getMaxLength () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.7K bytes
    - Viewed (0)
Back to top