- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for Encdec (0.04 sec)
-
src/main/java/jcifs/smb1/util/Encdec.java
* Provides methods for encoding/decoding various data types in different byte orders. */ public class Encdec { /** * Default constructor for Encdec. * This is a utility class with static methods. */ public Encdec() { // Default constructor } /** * Milliseconds between January 1, 1970 and January 1, 1601 (Windows epoch). */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.5K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
/* encdec - encode and decode integers, times, and * internationalized strings to and from popular binary formats * http://www.ioplex.com/~miallen/encdec/ * Copyright (c) 2003 Michael B. Allen <******@****.***> * * The GNU Library General Public License * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
Encdec.enc_uint16be((short) v, tmp, 0); write(tmp, 0, 2); } @Override public final void writeChar(final int v) throws SmbException { Encdec.enc_uint16be((short) v, tmp, 0); write(tmp, 0, 2); } @Override public final void writeInt(final int v) throws SmbException { Encdec.enc_uint32be(v, tmp, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
import jcifs.CIFSException; import jcifs.SmbPipeHandle; import jcifs.SmbPipeResource; import jcifs.SmbResourceLocator; import jcifs.smb.SmbNamedPipe; import jcifs.smb.SmbPipeHandleInternal; import jcifs.util.Encdec; /** * Test class for DcerpcPipeHandle */ @ExtendWith(MockitoExtension.class) class DcerpcPipeHandleTest { @Mock private CIFSContext mockContext; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/util/EncdecTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import jcifs.BaseTest; /** * Test class for Encdec utility functionality */ @DisplayName("Encdec Utility Tests") class EncdecTest extends BaseTest { @Test @DisplayName("Should encode and decode 16-bit integers") void testInt16Operations() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
assertEquals(0, Encdec.dec_uint32le(buffer, 0)); // Should be 0 for null referent } @Test void testDecNdrStringInvalidConformance() { // Simulate a string with invalid size ndrBuffer.setIndex(0); Encdec.enc_uint32le(0xFFFF + 1, buffer, 0); // len = 0xFFFF + 1 Encdec.enc_uint32le(0, buffer, 4); Encdec.enc_uint32le(0xFFFF + 1, buffer, 8);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
*/ public void enc_ndr_string(final String s) { align(4); int i = this.index; final int len = s.length(); Encdec.enc_uint32le(len + 1, this.buf, i); i += 4; Encdec.enc_uint32le(0, this.buf, i); i += 4; Encdec.enc_uint32le(len + 1, this.buf, i); i += 4; System.arraycopy(Strings.getUNIBytes(s), 0, this.buf, i, len * 2); i += len * 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java
*/ public void enc_ndr_string(final String s) { align(4); int i = index; final int len = s.length(); Encdec.enc_uint32le(len + 1, buf, i); i += 4; Encdec.enc_uint32le(0, buf, i); i += 4; Encdec.enc_uint32le(len + 1, buf, i); i += 4; try { System.arraycopy(s.getBytes("UTF-16LE"), 0, buf, i, len * 2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
Encdec.enc_uint32be(v, this.tmp, 0); write(this.tmp, 0, 4); } @Override public final void writeLong(final long v) throws SmbException { Encdec.enc_uint64be(v, this.tmp, 0); write(this.tmp, 0, 8); } @Override public final void writeFloat(final float v) throws SmbException { Encdec.enc_floatbe(v, this.tmp, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
Encdec.enc_uint32le(0x00000101, blob, 0); // Header Encdec.enc_uint32le(0x00000000, blob, 4); // Reserved Encdec.enc_uint64le(nanos1601, blob, 8); System.arraycopy(clientChallenge, 0, blob, 16, 8); Encdec.enc_uint32le(0x00000000, blob, 24); // Unknown System.arraycopy(avPairs, 0, blob, 28, avPairsLength); Encdec.enc_uint32le(0x00000000, blob, 28 + avPairsLength);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0)