- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 847 for LENGTH (0.04 seconds)
-
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() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.9K bytes - Click Count (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");
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (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
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:48:28 GMT 2025 - 8.9K bytes - Click Count (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 };Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (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); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (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);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.1K bytes - Click Count (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
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (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"); }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.5K bytes - Click Count (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];
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java
String[] suffix = {"f", "g"}; String[] all = new String[elements.length + suffix.length]; arraycopy(elements, 0, all, 0, elements.length); arraycopy(suffix, 0, all, elements.length, suffix.length); return ImmutableList.copyOf(all).subList(0, elements.length); } } public static class ImmutableListTailSubListGenerator extends TestStringListGenerator { @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 5K bytes - Click Count (0)