- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for 13 (0.01 sec)
-
src/test/java/jcifs/util/ByteEncodableTest.java
ByteEncodable encodable = new ByteEncodable(data, 1, 3); // Verify size assertEquals(3, encodable.size(), "Size should be equal to the specified length"); } @Test void testEncodeBasic() { // Test basic encoding byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 }; ByteEncodable encodable = new ByteEncodable(data, 1, 3); byte[] dest = new byte[5];
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/main/java/jcifs/dcerpc/DcerpcMessage.java
} @Override public void decode(final NdrBuffer buf) throws NdrException { decode_header(buf); if (this.ptype != 12 && this.ptype != 2 && this.ptype != 3 && this.ptype != 13) { throw new NdrException("Unexpected ptype: " + this.ptype); } if (this.ptype == 2 || this.ptype == 3) { /* Response or Fault */ this.alloc_hint = buf.dec_ndr_long();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
setConverter(response, 0); setNumEntries(response, 1); // Create a 13-character share name (maximum) String shareName = "SHARE12345678"; // 13 characters String remark = "Max length name"; byte[] buffer = new byte[200]; int bufferIndex = 0; // Write share name (exactly 13 bytes) byte[] nameBytes = shareName.getBytes(StandardCharsets.US_ASCII);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
ndrBuffer.setIndex(10); byte[] partialData = { 0x05, 0x06, 0x07, 0x08, 0x09 }; ndrBuffer.writeOctetArray(partialData, 1, 3); // Write 0x06, 0x07, 0x08 assertEquals(13, ndrBuffer.getIndex()); assertEquals(13, ndrBuffer.getLength()); assertEquals(0x06, buffer[10]); assertEquals(0x07, buffer[11]); assertEquals(0x08, buffer[12]); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java
assertEquals(nameBytes.length, SMBUtil.readInt4(buffer, 8)); // Check timeout specified flag (should be 0) assertEquals(0x0, buffer[12]); // Check padding assertEquals(0x0, buffer[13]); // Check name bytes byte[] encodedName = new byte[nameBytes.length]; System.arraycopy(buffer, 14, encodedName, 0, nameBytes.length); assertArrayEquals(nameBytes, encodedName); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
void testDescrAsciiEncoding() throws UnsupportedEncodingException { String descr = "WrLeh\u0000B13BWz\u0000"; byte[] asciiBytes = descr.getBytes("ASCII"); // The actual string has 13 bytes assertEquals(13, asciiBytes.length); // Verify specific bytes assertEquals('W', asciiBytes[0]); assertEquals('r', asciiBytes[1]); assertEquals('L', asciiBytes[2]);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java
throw new NdrException("Unexpected ptype: " + ptype); } if (ptype == 2 || ptype == 3) { /* Response or Fault */ alloc_hint = buf.dec_ndr_long(); buf.dec_ndr_short(); /* context id */ buf.dec_ndr_short(); /* cancel count */ } if (ptype == 3 || ptype == 13) { /* Fault */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
when(mockBuffer.dec_ndr_short()).thenReturn(100) // length .thenReturn(0); // auth_value length message.decode(mockBuffer); assertEquals(DcerpcConstants.RPC_PT_BIND_NAK, message.ptype); assertEquals(123, message.result); // BIND_NAK is treated as fault (ptype 13) } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/NetShareEnumResponse.java
final SmbShareInfo[] results = new SmbShareInfo[getNumEntries()]; for (int i = 0; i < getNumEntries(); i++) { results[i] = e = new SmbShareInfo(); e.netName = readString(buffer, bufferIndex, 13, false); bufferIndex += 14; e.type = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; int off = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/DES.java
(byte) 13, (byte) 5, (byte) 60, (byte) 52, (byte) 44, (byte) 36, (byte) 28, (byte) 20, (byte) 12, (byte) 4, (byte) 27, (byte) 19, (byte) 11, (byte) 3 }; private static int[] totrot = { 1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28 };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 22.7K bytes - Viewed (0)