Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for writeOctetArray (0.78 sec)

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

            // Encode input parameters for WitnessUnregister
    
            // Context handle (20 bytes) - this is both input and output (modified)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
    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/WitnessHeartbeatMessage.java

            // Encode input parameters for WitnessHeartbeat
    
            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            assertEquals(0, alignedBytes);
            assertEquals(4, ndrBuffer.getIndex());
        }
    
        @Test
        void testWriteOctetArray() {
            byte[] data = { 0x01, 0x02, 0x03, 0x04 };
            ndrBuffer.writeOctetArray(data, 0, data.length);
    
            assertEquals(data.length, ndrBuffer.getIndex());
            assertEquals(data.length, ndrBuffer.getLength());
            assertArrayEquals(data, Arrays.copyOfRange(buffer, 0, data.length));
    
    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

         * Writes an octet array to the buffer.
         *
         * @param b the byte array to write
         * @param i the starting index in the array
         * @param l the number of bytes to write
         */
        public void writeOctetArray(final byte[] b, final int i, final int l) {
            System.arraycopy(b, i, buf, index, l);
            advance(l);
        }
    
        /**
         * Reads an octet array from 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/internal/witness/WitnessRegisterMessage.java

                buf.enc_ndr_long(0); // Offset
                buf.enc_ndr_long(charCount + 1); // ActualCount (including null terminator)
    
                // String data in UTF-16LE
                buf.writeOctetArray(wideBytes, 0, wideBytes.length);
                buf.enc_ndr_short(0); // Wide null terminator
    
                // Pad to 4-byte boundary
                int padding = (4 - ((wideBytes.length + 2) % 4)) % 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

         * Writes an octet array to the buffer.
         *
         * @param b the byte array to write
         * @param i the starting index in the array
         * @param l the number of bytes to write
         */
        public void writeOctetArray(final byte[] b, final int i, final int l) {
            System.arraycopy(b, i, this.buf, this.index, l);
            advance(l);
        }
    
        /**
         * Reads an octet array from 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)
  7. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            // Encode input parameters for WitnessAsyncNotify
    
            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
    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