Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for pad (0.02 sec)

  1. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

      public void testPutStringWithLowSurrogate() {
        // we pad because the dummy hash function we use to test this, merely copies the input into
        // the output, so the input must be at least 32 bits, since the output has to be that long
        assertPutString(new char[] {'p', HashTestUtils.randomLowSurrogate(new Random())});
      }
    
      public void testPutStringWithHighSurrogate() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    	if tw.err != nil {
    		return tw.err
    	}
    	if nb := tw.curr.logicalRemaining(); nb > 0 {
    		return fmt.Errorf("archive/tar: missed writing %d bytes", nb)
    	}
    	if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil {
    		return tw.err
    	}
    	tw.pad = 0
    	return nil
    }
    
    // WriteHeader writes hdr and prepares to accept the file's contents.
    // The Header.Size determines how many bytes can be written for the next file.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

                    SMBUtil.writeInt4(len, dst, dataLengthOffset);
                    dstIndex += len;
    
                    int pad = pad8(dstIndex);
                    totalCreateContextLength += len + pad;
                    dstIndex += pad;
                    lastStart = structStart;
                }
            }
            SMBUtil.writeInt4(totalCreateContextLength, dst, createContextLengthOffset);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 01 09:52:11 UTC 2019
    - 14.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/Base64.java

         */
        public static byte[] decode(String string) {
            int length = string.length();
            if (length == 0) return new byte[0];
            int pad = (string.charAt(length - 2) == '=') ? 2 :
                    (string.charAt(length - 1) == '=') ? 1 : 0;
            int size = length * 3 / 4 - pad;
            byte[] buffer = new byte[size];
            int block;
            int i = 0;
            int index = 0;
            while (i < length) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                    }
                    String progress = " [" + number + '/' + totalProjects + ']';
    
                    int pad = lineLength - building.length() - progress.length();
    
                    infoMain(building + ((pad > 0) ? chars(' ', pad) : "") + progress);
                }
    
                // path to pom.xml
                File currentPom = project.getFile();
                if (currentPom != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                    resp.decode( BUF, 4 );
                                                  /* EMC can send pad w/o data */
                    int pad = r.dataOffset - off;
                    if (r.byteCount > 0 && pad > 0 && pad < 4)
                        readn( in, BUF, 4 + off, pad);
    
                    if (r.dataLength > 0)
                        readn( in, r.b, r.off, r.dataLength );  /* read direct */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 31.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/AbstractStreamingHasher.java

       */
      protected void processRemaining(ByteBuffer bb) {
        Java8Compatibility.position(bb, bb.limit()); // move at the end
        Java8Compatibility.limit(bb, chunkSize + 7); // get ready to pad with longs
        while (bb.position() < chunkSize) {
          bb.putLong(0);
        }
        Java8Compatibility.limit(bb, chunkSize);
        Java8Compatibility.flip(bb);
        process(bb);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  8. docs_src/dataclasses/tutorial003.py

                "items": [
                    {
                        "name": "Salt",
                        "description": "The kombucha mushroom people's favorite",
                    },
                    {"name": "Pad Thai"},
                    {
                        "name": "Lonely Night",
                        "description": "The mostests lonliest nightiest of allest",
                    },
                ],
            },
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. internal/amztime/iso8601_time.go

    func ISO8601Format(t time.Time) string {
    	value := t.Format(iso8601TimeFormat)
    	if len(value) < len(iso8601TimeFormat) {
    		value = t.Format(iso8601TimeFormat[:len(iso8601TimeFormat)-1])
    		// Pad necessary zeroes to full-fill the iso8601TimeFormat
    		return value + strings.Repeat("0", (len(iso8601TimeFormat)-1)-len(value)) + "Z"
    	}
    	return value
    }
    
    // ISO8601Parse parses ISO8601 date string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 16 23:38:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/Hexdump.java

        };
    
    
        /**
         * This is an alternative to the <code>java.lang.Integer.toHexString</code>
         * method. It is an efficient relative that also will pad the left side so
         * that the result is <code>size</code> digits.
         * 
         * @param val
         * @param size
         * @return hex string
         */
        public static String toHexString ( int val, int size ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
Back to top