- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 117 for maxlength (0.08 seconds)
-
src/main/java/jcifs/pac/PacDataInputStream.java
final short length = readShort(); final short maxLength = readShort(); final int pointer = readInt(); if (maxLength < length) { throw new PACDecodingException("Malformed string in PAC"); } return new PacUnicodeString(length, maxLength, pointer); } /** * Reads a string with length prefix from the stream.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/HashCode.java
* @param offset the start offset in the data * @param maxLength the maximum number of bytes to write * @return the number of bytes written to {@code dest} * @throws IndexOutOfBoundsException if there is not enough room in {@code dest} */ @CanIgnoreReturnValue public int writeBytesTo(byte[] dest, int offset, int maxLength) { maxLength = min(maxLength, bits() / 8);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 12.6K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacUnicodeString.java
this.length = length; this.maxLength = maxLength; this.pointer = pointer; } /** * Gets the actual length of the string in bytes. * * @return the string length */ public short getLength() { return this.length; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.9K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacUnicodeStringTest.java
*/ @Test void testConstructorAndGetters() { // Create a new instance with some test data short length = 10; short maxLength = 20; int pointer = 100; PacUnicodeString pacString = new PacUnicodeString(length, maxLength, pointer); // Verify that the object was created assertNotNull(pacString, "The PacUnicodeString object should not be null.");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.7K bytes - Click Count (0) -
guava/src/com/google/common/base/Ascii.java
// meaning that a string will be truncated to just the truncation indicator itself checkArgument( truncationLength >= 0, "maxLength (%s) must be >= length of the truncation indicator (%s)", maxLength, truncationIndicator.length()); if (seq.length() <= maxLength) { String string = seq.toString();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 21.7K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Ascii.java
// meaning that a string will be truncated to just the truncation indicator itself checkArgument( truncationLength >= 0, "maxLength (%s) must be >= length of the truncation indicator (%s)", maxLength, truncationIndicator.length()); if (seq.length() <= maxLength) { String string = seq.toString();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 21.7K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/MessageDigestHashFunction.java
this.toString = checkNotNull(toString); this.prototype = getMessageDigest(algorithmName); int maxLength = prototype.getDigestLength(); checkArgument( bytes >= 4 && bytes <= maxLength, "bytes (%s) must be >= 4 and < %s", bytes, maxLength); this.bytes = bytes; this.supportsClone = supportsClone(prototype); } private static boolean supportsClone(MessageDigest digest) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.9K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java
final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType()); if (responseData.getContentLength() > maxLength) { throw new MaxLengthExceededException("The content length (" + responseData.getContentLength() + " byte) is over " + maxLength + " byte. The url is " + filePath); }
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Nov 23 12:19:14 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/ActivityHelper.java
if (script == null) { return "-"; } final int maxLength = ComponentUtil.getFessConfig().getScriptAuditLogMaxLengthAsInteger(); String normalized = script; if (normalized.length() > maxLength) { normalized = normalized.substring(0, maxLength - 3) + "..."; } return normalized.replace('\n', ' ').replace('\r', ' ').replace('\t', '_'); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 11:45:43 GMT 2026 - 13.1K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
pdis = createInputStream(nullData); assertNull(pdis.readFiletime()); } @Test public void testReadUnicodeString() throws IOException, PACDecodingException { // length=4, maxLength=4, pointer=0x1234 byte[] data = new byte[] { 0x04, 0x00, 0x04, 0x00, 0x34, 0x12, 0x00, 0x00 }; PacDataInputStream pdis = createInputStream(data); PacUnicodeString str = pdis.readUnicodeString();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 9.2K bytes - Click Count (0)