- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 362 for getByte (0.07 sec)
-
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertTrue( from.getType() + " is expected to be assignable to " + to.getType(), to.isSupertypeOf(from)); assertTrue( to.getType() + " is expected to be a supertype of " + from.getType(), to.isSupertypeOf(from)); assertTrue( from.getType() + " is expected to be a subtype of " + to.getType(), from.isSubtypeOf(to)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
} @Test @DisplayName("getBytes should encode string with specified charset") void testGetBytesWithCharset() { // When byte[] utf8Bytes = Strings.getBytes(TEST_STRING, StandardCharsets.UTF_8); byte[] utf16Bytes = Strings.getBytes(TEST_STRING, StandardCharsets.UTF_16LE); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
// Verify replaceIfExists flag assertEquals(1, buffer[0]); // Verify file name length int nameLength = SMBUtil.readInt4(buffer, 16); assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength); // Verify file name byte[] nameBytes = new byte[nameLength]; System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
* @param encoding the character encoding to use * @return encoded byte array, or empty array if str is null */ public static byte[] getBytes(final String str, final Charset encoding) { if (str == null) { return new byte[0]; } return str.getBytes(encoding); } /** * Encodes a string into UTF-16LE (Unicode Little Endian) bytes. * * @param str the string to encode
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
} @Test public void testContentCache() { CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes(); ContentCache cache = new ContentCache(data); response.setContentCache(cache); // ContentCache is not directly accessible, but we can test through content methods
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/ServerDataTest.java
assertEquals(int.class, ServerData.class.getDeclaredField("sflags2").getType()); assertEquals(int.class, ServerData.class.getDeclaredField("smaxMpxCount").getType()); assertEquals(int.class, ServerData.class.getDeclaredField("maxBufferSize").getType()); assertEquals(int.class, ServerData.class.getDeclaredField("sessKey").getType());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
response.byteCount = 15; // 8 bytes key + 6 bytes "DOMAIN" + 1 null terminator // Prepare byte array byte[] encryptionKey = "12345678".getBytes(); byte[] domainNameBytes = "DOMAIN".getBytes(ServerMessageBlock.OEM_ENCODING); ByteBuffer buffer = ByteBuffer.allocate(response.byteCount); buffer.put(encryptionKey); buffer.put(domainNameBytes);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
System.arraycopy("SHARE1".getBytes(StandardCharsets.US_ASCII), 0, data, 0, 6); data[14] = 0x00; data[15] = 0x00; // type = 0 data[16] = 40; data[17] = 0; data[18] = 0; data[19] = 0; // remark offset // Entry 2: IPC$, type 3 (IPC), remark "Inter-Process Communication" System.arraycopy("IPC$".getBytes(StandardCharsets.US_ASCII), 0, data, 20, 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcDfsRootEnumTest.java
assertEquals(entries1[i].getName(), entries2[i].getName()); assertEquals(entries2[i].getName(), entries3[i].getName()); assertEquals(entries1[i].getType(), entries2[i].getType()); assertEquals(entries2[i].getType(), entries3[i].getType()); } } @Test @DisplayName("Verify proper inheritance and interface implementation") void testInheritance() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.9K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairTest.java
int type = AvPair.MsvAvTimestamp; byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 }; AvPair avPair = new AvPair(type, raw); assertEquals(type, avPair.getType(), "Type should match the constructor argument."); assertArrayEquals(raw, avPair.getRaw(), "Raw data should match the constructor argument."); // Test with another type and empty raw data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0)