Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeOctetArray (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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