- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 1,848 for lengths (0.04 sec)
-
src/test/java/jcifs/internal/util/StringUtilTest.java
// First: "" (sb becomes "") // Second: sb.length() is 0, no delimiter, append null (sb becomes "null") // Third: sb.length() > 0, add "-" + "value" (sb becomes "null-value") // Fourth: sb.length() > 0, add "-" + "" (sb becomes "null-value-") // Fifth: sb.length() > 0, add "-" + null (sb becomes "null-value--null") assertEquals("null-value--null", result); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9K bytes - Viewed (0) -
cmd/erasure-utils.go
) // getDataBlockLen - get length of data blocks from encoded blocks. func getDataBlockLen(enBlocks [][]byte, dataBlocks int) int { size := 0 // Figure out the data block length. for _, block := range enBlocks[:dataBlocks] { size += len(block) } return size } // Writes all the data blocks from encoded blocks until requested // outSize length. Provides a way to skip bytes until the offset.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
// Expected size: 2 (info level) + 4 (reserved) + filename length + 1 (null terminator) byte[] dst = new byte[2 + 4 + filename.length() + 1]; // When int bytesWritten = trans.writeParametersWireFormat(dst, 0); // Then assertEquals(dst.length, bytesWritten, "The number of bytes written should match the expected length."); // Check informationLevelRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileRenameInformation2.java
final byte[] nameBytes = this.fileName.getBytes(StandardCharsets.UTF_16LE); SMBUtil.writeInt4(nameBytes.length, dst, dstIndex); dstIndex += 4; System.arraycopy(nameBytes, 0, dst, dstIndex, nameBytes.length); dstIndex += nameBytes.length; return dstIndex - start; } /** * {@inheritDoc} * * @see jcifs.Encodable#size() */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/MIEName.java
*/ MIEName(final byte[] buf) { int i; int len; if (buf.length < TOK_ID_SIZE + MECH_OID_LEN_SIZE) { throw new IllegalArgumentException(); } // TOK_ID for (i = 0; i < TOK_ID.length; i++) { if (TOK_ID[i] != buf[i]) { throw new IllegalArgumentException(); } }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java
@Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(this.hashAlgos != null ? this.hashAlgos.length : 0, dst, dstIndex); SMBUtil.writeInt2(this.salt != null ? this.salt.length : 0, dst, dstIndex + 2); dstIndex += 4; if (this.hashAlgos != null) { for (final int hashAlgo : this.hashAlgos) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
for (int i = 0; i < reps; i++) { for (int n = 0; n < chars.length; n++) { dummy ^= Ascii.isUpperCase(chars[n]); } } return dummy; } static String charSequenceToUpperCase(CharSequence chars) { char[] newChars = new char[chars.length()]; for (int i = 0; i < newChars.length; i++) { newChars[i] = Ascii.toUpperCase(chars.charAt(i)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java
System.arraycopy(this.blob, 0, dst, dstIndex, this.blob.length); dstIndex += this.blob.length; } else { System.arraycopy(this.lmHash, 0, dst, dstIndex, this.lmHash.length); dstIndex += this.lmHash.length; System.arraycopy(this.ntHash, 0, dst, dstIndex, this.ntHash.length); dstIndex += this.ntHash.length;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
SecurityBlob blob = new SecurityBlob(data); // Assert assertSame(data, blob.get(), "get() should expose the same array reference passed in"); assertEquals(data.length, blob.length(), "length() should match underlying array length"); assertEquals("deadbeef", blob.toString(), "toString() should reflect underlying content"); assertEquals(data.hashCode(), blob.hashCode(), "hashCode should equal the array's hashCode");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
cmd/object_api_suite_test.go
length = int64(len(uploadContent)) _, err = obj.PutObject(context.Background(), "bucket", "object", mustGetPutObjReader(t, bytes.NewBufferString(uploadContent), length, "", ""), opts) if err != nil { t.Fatalf("%s: <ERROR> %s", instanceType, err) } var bytesBuffer bytes.Buffer err = GetObject(context.Background(), obj, "bucket", "object", 0, length, &bytesBuffer, "", opts) if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 34.5K bytes - Viewed (0)