- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MaxLen (0.06 sec)
-
src/main/java/jcifs/util/Strings.java
* @param bufferIndex * @param maxLen * @return position of terminating null bytes */ public static int findUNITermination ( byte[] buffer, int bufferIndex, int maxLen ) { int len = 0; while ( buffer[ bufferIndex + len ] != (byte) 0x00 || buffer[ bufferIndex + len + 1 ] != (byte) 0x00 ) { len += 2; if ( len > maxLen ) { if ( log.isDebugEnabled() ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Mon Mar 13 12:00:57 UTC 2023 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/NamingTest.java
private static String[] splitString ( String str, int maxLen ) { int num = str.length() / maxLen; if ( str.length() % maxLen != 0 ) { num++; } String strings[] = new String[num]; for ( int i = 0; i < num; i++ ) { strings[ i ] = str.substring(i * maxLen, Math.min(str.length() - 1, ( i + 1 ) * maxLen)); } return strings; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sat Jun 06 10:48:05 UTC 2020 - 7K bytes - Viewed (0)