- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 818 for LENGTH (0.04 sec)
-
src/main/java/jcifs/pac/PacUnicodeString.java
* @param pointer the pointer/offset to the string data */ public PacUnicodeString(final short length, final short maxLength, final int pointer) { 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() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
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]; arraycopy(elements, offset, result, 0, length); return result; } @CanIgnoreReturnValue
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:48:28 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UnicodeStringTest.java
assertEquals((testStringTrue.length() + 1) * 2, unicodeStringTrue.length, "Length should include zterm"); assertEquals((testStringTrue.length() + 1) * 2, unicodeStringTrue.maximum_length, "Maximum length should include zterm"); assertNotNull(unicodeStringTrue.buffer, "Buffer should not be null"); assertEquals(testStringTrue.length() + 1, unicodeStringTrue.buffer.length, "Buffer length should include zterm");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
// Verify encoded length assertEquals(3, encodedLen, "Encoded length should be equal to the specified length"); // Verify content assertArrayEquals(new byte[] { (byte) 0xFF, 0x01, 0x02, 0x03, 0x00 }, dest, "Encoded bytes should be placed at the correct offset"); } @Test void testEncodeZeroLength() { // Test encoding with zero length byte[] data = { 0x01, 0x02, 0x03 };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
System.arraycopy(testData, 0, buffer, 10, testData.length); int result = response.readDataWireFormat(buffer, 10, testData.length); assertEquals(testData.length, result); // Verify data was copied to outputBuffer byte[] expectedData = new byte[testData.length]; System.arraycopy(outputBuffer, 0, expectedData, 0, testData.length); assertArrayEquals(testData, expectedData); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
byte[] outputBuffer = new byte[testData.length + 100]; int writtenBytes = compressionService.decompress(compressed, 0, compressed.length, outputBuffer, 50, CompressionService.COMPRESSION_LZ77); assertEquals(testData.length, writtenBytes); byte[] extracted = new byte[testData.length]; System.arraycopy(outputBuffer, 50, extracted, 0, testData.length);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
assertFalse(result.isEmpty()); assertEquals(size * 2, result.length()); // Each byte becomes 2 hex chars } @Test @DisplayName("Should format with specific offset and length") void testHexdumpWithOffsetAndLength() { // Given byte[] data = createTestData(64); int offset = 16; int length = 32; // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java
} if (isDirect) { out.writeDirect(buf, off, length, 1); return; } out.write(buf, off, length); } @Override protected void doReceiveFragment(final byte[] buf, final boolean isDirect) throws IOException { int off, flags, length; if (buf.length < max_recv) { throw new IllegalArgumentException("buffer too small"); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
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]; arraycopy(elements, offset, result, 0, length); return result; } @CanIgnoreReturnValue
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:48:28 UTC 2025 - 8.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
if (x.length() != (originalString.length() * count)) { throw new RuntimeException("Wrong length: " + x); } } } private static String oldRepeat(String string, int count) { // If this multiplication overflows, a NegativeArraySizeException or // OutOfMemoryError is not far behind int len = string.length(); int size = len * count; char[] array = new char[size];
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.4K bytes - Viewed (0)