- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for enc_uint16le (0.2 sec)
-
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
byte[] buf = new byte[50]; byte[] inB = new byte[100]; // Setup fragment length in response buffer Encdec.enc_uint16le((short) 40, inB, 8); when(mockSmbPipeHandleInternal.isStale()).thenReturn(false); when(mockSmbPipeHandleInternal.sendrecv(buf, 0, 50, inB, 4280)).thenReturn(40);
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
void testInt16Operations() { // Given short value = 0x1234; byte[] buffer = new byte[2]; // When - encode little endian Encdec.enc_uint16le(value, buffer, 0); short decoded = (short) Encdec.dec_uint16le(buffer, 0); // Then assertEquals(value, decoded); assertEquals(0x34, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); }
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/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/util/Encdec.java
* @param di the starting index in the destination array * @return the number of bytes written (8) */ public static int enc_uint64le(final long l, final byte[] dst, final int di) { enc_uint32le((int) (l & 0xFFFFFFFFL), dst, di); enc_uint32le((int) (l >> 32L & 0xFFFFFFFFL), dst, di + 4); return 8; } /** * Decodes a 64-bit unsigned integer from big-endian byte order.
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/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/util/Encdec.java
* @param di the starting index in the destination array * @return the number of bytes written (8) */ public static int enc_uint64le(final long l, final byte[] dst, final int di) { enc_uint32le((int) (l & 0xFFFFFFFFL), dst, di); enc_uint32le((int) (l >> 32L & 0xFFFFFFFFL), dst, di + 4); return 8; } /** * Decodes a 64-bit unsigned integer from big-endian byte order.
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/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) -
src/main/java/jcifs/smb/NtlmUtil.java
final byte[] temp = new byte[28 + avPairsLength + 4]; Encdec.enc_uint32le(0x00000101, temp, 0); // Header Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if (avPairs != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
final byte[] temp = new byte[28 + targetInfoLength + 4]; Encdec.enc_uint32le(0x00000101, temp, 0); // Header Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if (targetInfo != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
} @Override public final void writeShort(final int v) throws SmbException { 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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0)