- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 406 for getByte (0.04 sec)
-
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
String fileName2 = "file2.txt"; String fileName3 = "file3.txt"; byte[] fileNameBytes1 = fileName1.getBytes("UTF-16LE"); byte[] fileNameBytes2 = fileName2.getBytes("UTF-16LE"); byte[] fileNameBytes3 = fileName3.getBytes("UTF-16LE"); // First entry size: 4 (nextOffset) + 4 (action) + 4 (nameLength) + nameBytes int entry1Size = 12 + fileNameBytes1.length;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
@Override public CharSource createSource(String string) throws IOException { return factory.createSource(string.getBytes(UTF_8)).asCharSource(UTF_8); } @Override public String getExpected(String data) { return new String(factory.getExpected(data.getBytes(UTF_8)), UTF_8); } @Override public void tearDown() throws IOException { factory.tearDown();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
// Encode the full message to set headerStart request.encode(buffer, headerStart); // Then - verify the body was written correctly byte[] pathBytes = TEST_PATH.getBytes(StandardCharsets.UTF_16LE); // Verify structure size (9) assertEquals(9, SMBUtil.readInt2(buffer, bodyOffset)); // Verify tree flags (0)
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/smb1/smb1/NetServerEnum2Test.java
// Verify subcommand assertEquals(SmbComTransaction.NET_SERVER_ENUM2 & 0xFF, (dst[0] & 0xFF) | ((dst[1] & 0xFF) << 8)); // Verify description byte[] descr = NetServerEnum2.DESCR[0].getBytes("ASCII"); byte[] writtenDescr = new byte[descr.length]; System.arraycopy(dst, 2, writtenDescr, 0, descr.length); assertArrayEquals(descr, writtenDescr); int currentIndex = 2 + descr.length;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
} @Test void testReadSecurityBuffer() { // Test readSecurityBuffer byte[] data = new byte[20]; byte[] content = "Hello".getBytes(); // Simulate a security buffer structure: length (2 bytes), length (2 bytes), offset (4 bytes) // Length = 5, Offset = 8 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
byte[] buffer = "Test\0Other".getBytes(); assertEquals(4, testBlock.readStringLength(buffer, 0, 10)); } @Test @DisplayName("Test read string length without termination throws exception") void testReadStringLengthNoTermination() { byte[] buffer = "TestTest".getBytes(); assertThrows(RuntimeCIFSException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
domain = unicode ? domainName.getBytes(UNI_ENCODING) : domainName.getBytes(oem); } final int domainLength = domain != null ? domain.length : 0; final String userName = getUser(); byte[] user = null; if (userName != null && userName.length() != 0) { user = unicode ? userName.getBytes(UNI_ENCODING) : userName.toUpperCase().getBytes(oem);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
* Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code> * represents is a server. */ int TYPE_SERVER = 0x04; /** * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code> * represents is a share. */ int TYPE_SHARE = 0x08; /** * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.5K bytes - Viewed (0) -
src/main/java/jcifs/SID.java
* <p> * Consider the following output of <code>examples/SidLookup.java</code>: * * <pre> * toString: S-1-5-21-4133388617-793952518-2001621813-512 * toDisplayString: WNET\Domain Admins * getType: 2 * getTypeText: Domain group * getDomainName: WNET * getAccountName: Domain Admins * </pre> */ public interface SID { /** * SID type indicating no type information. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.4K bytes - Viewed (0)