- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for readOctetArray (0.09 sec)
-
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
byte[] sourceData = { 0x10, 0x11, 0x12, 0x13, 0x14 }; System.arraycopy(sourceData, 0, buffer, 0, sourceData.length); byte[] destData = new byte[5]; ndrBuffer.readOctetArray(destData, 0, sourceData.length); assertEquals(sourceData.length, ndrBuffer.getIndex()); assertEquals(sourceData.length, ndrBuffer.getLength()); // Length is updated on read too
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/smb1/dcerpc/ndr/NdrBuffer.java
* Reads an octet array from the buffer. * * @param b the byte array to read into * @param i the starting index in the array * @param l the number of bytes to read */ public void readOctetArray(final byte[] b, final int i, final int l) { System.arraycopy(buf, index, b, i, l); advance(l); } /** * Returns the length of data in the buffer. *
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/dcerpc/ndr/NdrBuffer.java
* Reads an octet array from the buffer. * * @param b the byte array to read into * @param i the starting index in the array * @param l the number of bytes to read */ public void readOctetArray(final byte[] b, final int i, final int l) { System.arraycopy(this.buf, this.index, b, i, l); advance(l); } /** * Returns the length of data in the buffer. *
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/internal/witness/WitnessAsyncNotifyMessage.java
return ""; } // Read wide string data (UTF-16LE) int byteCount = (actualCount - 1) * 2; // Exclude null terminator byte[] wideBytes = new byte[byteCount]; buf.readOctetArray(wideBytes, 0, byteCount); // Skip null terminator buf.dec_ndr_short(); // Skip padding int padding = (4 - ((byteCount + 2) % 4)) % 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 16.4K bytes - Viewed (0)