- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 788 for lencode (0.43 sec)
-
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
/** * When lastWriteTime is zero the encoded unsigned time must be all 1s. */ @Test @DisplayName("edge: writeParameterWordsWireFormat with lastWriteTime=0") void testWriteParameterWordsZeroUTime() { SmbComClose close = new SmbComClose(42, 0L); byte[] buffer = new byte[6]; close.writeParameterWordsWireFormat(buffer, 0); // first two bytes encode fid 42
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
@DisplayName("fromUNIBytes should decode UTF-16LE bytes to string") void testFromUNIBytes() { // Given byte[] bytes = TEST_STRING.getBytes(StandardCharsets.UTF_16LE); // When String result = Strings.fromUNIBytes(bytes, 0, bytes.length); // Then assertEquals(TEST_STRING, result, "Should decode back to original string"); }
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/org/codelibs/core/net/URLUtilTest.java
* @throws Exception */ public void testEncode() throws Exception { assertEquals("Program+Files", URLUtil.encode("Program Files", "UTF-8")); } /** * @throws Exception */ public void testDecode() throws Exception { assertEquals("Program Files", URLUtil.decode("Program+Files", "UTF-8")); } /** * @throws Exception */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrHyper.java
*/ public NdrHyper(final long value) { this.value = value; } @Override public void encode(final NdrBuffer dst) throws NdrException { dst.enc_ndr_hyper(value); } @Override public void decode(final NdrBuffer src) throws NdrException { value = src.dec_ndr_hyper(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrLong.java
*/ public NdrLong(final int value) { this.value = value; } @Override public void encode(final NdrBuffer dst) throws NdrException { dst.enc_ndr_long(value); } @Override public void decode(final NdrBuffer src) throws NdrException { value = src.dec_ndr_long(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrSmall.java
*/ public NdrSmall(final int value) { this.value = value & 0xFF; } @Override public void encode(final NdrBuffer dst) throws NdrException { dst.enc_ndr_small(value); } @Override public void decode(final NdrBuffer src) throws NdrException { value = src.dec_ndr_small(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Given request.setSessionBinding(true); byte[] buffer = new byte[512]; int headerStart = 50; // Encode the full message to set headerStart request.encode(buffer, headerStart); // Then - verify the body was written correctly int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java
* @param bufferIndex the starting offset in the buffer * @param len the length of data to decode * @throws IOException if an I/O error occurs during decoding */ public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException { this.decode(buffer, bufferIndex, len); } /** * Decodes a security descriptor from a byte buffer. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrShort.java
*/ public NdrShort(final int value) { this.value = value & 0xFF; } @Override public void encode(final NdrBuffer dst) throws NdrException { dst.enc_ndr_short(this.value); } @Override public void decode(final NdrBuffer src) throws NdrException { this.value = src.dec_ndr_short(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrShort.java
*/ public NdrShort(final int value) { this.value = value & 0xFF; } @Override public void encode(final NdrBuffer dst) throws NdrException { dst.enc_ndr_short(value); } @Override public void decode(final NdrBuffer src) throws NdrException { value = src.dec_ndr_short(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.5K bytes - Viewed (0)