Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for enc_uint16be (0.06 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            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
        public final void writeInt(final int v) throws SmbException {
            Encdec.enc_uint32be(v, tmp, 0);
            write(tmp, 0, 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        }
    
        @Override
        public final void writeShort(final int v) throws SmbException {
            Encdec.enc_uint16be((short) v, this.tmp, 0);
            write(this.tmp, 0, 2);
        }
    
        @Override
        public final void writeChar(final int v) throws SmbException {
            Encdec.enc_uint16be((short) v, this.tmp, 0);
            write(this.tmp, 0, 2);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. 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_uint64be(final long l, final byte[] dst, final int di) {
            enc_uint32be((int) (l & 0xFFFFFFFFL), dst, di + 4);
            enc_uint32be((int) (l >> 32L & 0xFFFFFFFFL), dst, di);
            return 8;
        }
    
        /**
         * Encodes a 64-bit unsigned integer in little-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)
  4. 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_uint64be(final long l, final byte[] dst, final int di) {
            enc_uint32be((int) (l & 0xFFFFFFFFL), dst, di + 4);
            enc_uint32be((int) (l >> 32L & 0xFFFFFFFFL), dst, di);
            return 8;
        }
    
        /**
         * Encodes a 64-bit unsigned integer in little-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)
  5. 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)
  6. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                }
    
                if (++mid == 32000) {
                    mid = 1;
                }
                NEGOTIATE_REQUEST.mid = mid;
                final int n = NEGOTIATE_REQUEST.encode(sbuf, 4);
                Encdec.enc_uint32be(n & 0xFFFF, sbuf, 0); /* 4 byte ssn msg header */
    
                if (LogStream.level >= 4) {
                    log.println(NEGOTIATE_REQUEST);
                    if (LogStream.level >= 6) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

        /**
         * Encodes a short integer (2 bytes) in NDR format.
         *
         * @param s the short integer value to encode
         */
        public void enc_ndr_short(final int s) {
            align(2);
            Encdec.enc_uint16le((short) s, buf, index);
            advance(2);
        }
    
        /**
         * Decodes a short integer (2 bytes) from NDR format.
         *
         * @return the decoded short integer value
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

        /**
         * Encodes a short integer (2 bytes) in NDR format.
         *
         * @param s the short integer value to encode
         */
        public void enc_ndr_short(final int s) {
            align(2);
            Encdec.enc_uint16le((short) s, this.buf, this.index);
            advance(2);
        }
    
        /**
         * Decodes a short integer (2 bytes) from NDR format.
         *
         * @return the decoded short integer value
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top