Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for readOctetArray (0.04 sec)

  1. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

            // Context handle is modified by the server (typically zeroed out)
            if (contextHandle == null) {
                contextHandle = new byte[20];
            }
            buf.readOctetArray(contextHandle, 0, 20);
        }
    
        /**
         * Checks if the context handle has been invalidated (all zeros).
         * A successful unregistration typically results in a zeroed context handle.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

            // Decode output parameters for WitnessRegister
    
            // Context handle (20 bytes)
            if (contextHandle == null) {
                contextHandle = new byte[20];
            }
            buf.readOctetArray(contextHandle, 0, 20);
        }
    
        /**
         * Encodes a wide string pointer in NDR format.
         *
         * @param buf the NDR buffer
         * @param str the string to encode (can be null)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top