Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 318 for lena (0.03 sec)

  1. src/main/java/jcifs/smb1/dcerpc/UnicodeString.java

        public UnicodeString(final String str, final boolean zterm) {
            this.zterm = zterm;
    
            final int len = str.length();
            final int zt = zterm ? 1 : 0;
    
            length = maximum_length = (short) ((len + zt) * 2);
            buffer = new short[len + zt];
    
            int i;
            for (i = 0; i < len; i++) {
                buffer[i] = (short) str.charAt(i);
            }
            if (zterm) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

        }
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException if a network error occurs
         */
    
        @Override
        public int read(final byte[] b, final int off, final int len) throws IOException {
            return readDirect(b, off, len);
        }
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dfs/Referral.java

                        this.rpath = readString(buffer, start + pathOffset, len);
                    }
                    if (nodeOffset > 0) {
                        this.node = readString(buffer, start + nodeOffset, len);
                    }
                    if (altPathOffset > 0) {
                        this.altPath = readString(buffer, start + altPathOffset, len);
                    }
                } else {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        bytesIn.writeByte(0x0a) // Literal name (len = 10)
        bytesIn.writeUtf8("custom-foo")
        bytesIn.writeByte(0x0d) // Literal value (len = 13)
        bytesIn.writeUtf8("custom-header")
        bytesIn.writeByte(0x40) // Literal indexed
        bytesIn.writeByte(0x0a) // Literal name (len = 10)
        bytesIn.writeUtf8("custom-bar")
        bytesIn.writeByte(0x0d) // Literal value (len = 13)
        bytesIn.writeUtf8("custom-header")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/MIEName.java

            if (buf.length < i + len) {
                throw new IllegalArgumentException();
            }
            final byte[] bo = new byte[len];
            System.arraycopy(buf, i, bo, 0, len);
            i += len;
            this.oid = ASN1ObjectIdentifier.getInstance(bo);
    
            // NAME_LEN
            if (buf.length < i + NAME_LEN_SIZE) {
                throw new IllegalArgumentException();
            }
            len = 0xff000000 & buf[i++] << 24;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

            i = pipe_buf.length - nxt_idx;
            if (len > i) {
                System.arraycopy(b, off, pipe_buf, nxt_idx, i);
                off += i;
                System.arraycopy(b, off, pipe_buf, 0, len - i);
            } else {
                System.arraycopy(b, off, pipe_buf, nxt_idx, len);
            }
            nxt_idx = (nxt_idx + len) % pipe_buf.length;
            used += len;
            return len;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponse.java

            return 0;
        }
    
        @Override
        protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) throws SMBProtocolDecodingException {
            if (len > this.outputBuffer.length) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

         */
        @Test
        void testReadDataWireFormat_withNullPipeIn() {
            mockPipe.pipeIn = null;
            byte[] buffer = new byte[10];
            int len = 10;
            int result = response.readDataWireFormat(buffer, 0, len);
            assertEquals(len, result, "readDataWireFormat should return the length when pipeIn is null.");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                len = offset % 2 != 0 ? len + 1 : len;
            }
            return len;
        }
    
        int readStringLength(final byte[] src, final int srcIndex, final int max) {
            int len = 0;
            while (src[srcIndex + len] != (byte) 0x00) {
                if (len++ > max) {
                    throw new RuntimeException("zero termination not found: " + this);
                }
            }
            return len;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SSPContextTest.java

            public byte[] initSecContext(byte[] token, int off, int len) throws CIFSException {
                if (token == null) {
                    if (len == 0) {
                        return new byte[0];
                    }
                    throw new CIFSException("token is null but len > 0");
                }
                if (off < 0 || len < 0 || off > token.length || off + len > token.length) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
Back to top