Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,708 for lengths (0.04 sec)

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

                while (iter.hasNext()) {
                    final String _key = (String) iter.next();
                    final int _klen = _key.length();
                    boolean match = false;
    
                    if (_klen == key.length()) {
                        match = _key.equals(key);
                    } else if (_klen < key.length()) {
                        match = _key.regionMatches(0, key, 0, _klen) && key.charAt(_klen) == '\\';
                    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/SessionServicePacket.java

            dstIndex++;
            if (this.length > 0x0000FFFF) {
                dst[dstIndex] = (byte) 0x01;
            }
            dstIndex++;
            writeInt2(this.length, dst, dstIndex);
            return HEADER_LENGTH;
        }
    
        int readHeaderWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) {
            this.type = buffer[bufferIndex] & 0xFF;
            bufferIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/Hexdump.java

         * @param length the number of bytes to dump from the source array
         */
    
        public static void hexdump(final PrintStream ps, final byte[] src, final int srcIndex, final int length) {
            if (length == 0) {
                return;
            }
    
            final int s = length % 16;
            final int r = s == 0 ? length / 16 : length / 16 + 1;
            final char[] c = new char[r * (74 + NL_LENGTH)];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            // Expected format: buffer format (0x04) + path string (null terminated)
            byte[] expected = new byte[directoryName.length() + 2];
            expected[0] = 0x04; // Buffer format
            System.arraycopy(directoryName.getBytes(StandardCharsets.UTF_8), 0, expected, 1, directoryName.length());
            expected[directoryName.length() + 1] = 0x00; // Null terminator
    
            byte[] dst = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. schema/index.go

    					idx        = strings.IndexByte(tag, ',')
    					tagSetting = strings.Join(strings.Split(tag, ",")[1:], ",")
    					settings   = ParseTagSetting(tagSetting, ",")
    					length, _  = strconv.Atoi(settings["LENGTH"])
    				)
    
    				if idx == -1 {
    					idx = len(tag)
    				}
    
    				name = tag[0:idx]
    				if name == "" {
    					subName := field.Name
    					const key = "COMPOSITE"
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed May 21 02:35:56 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                when(mockBuffer.dec_ndr_short()).thenReturn(100) // length
                        .thenReturn(0); // auth_value length
    
                message.decode_header(mockBuffer);
    
                assertEquals(DcerpcConstants.RPC_PT_RESPONSE, message.ptype);
                assertEquals(DcerpcConstants.RPC_C_PF_BROADCAST, message.flags);
                assertEquals(100, message.length);
                assertEquals(123, message.call_id);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

        private int length; // 4 bytes: Length of buffer
    
        /**
         * Create SMB2 RDMA Transform
         *
         * @param offset offset within registered buffer
         * @param token RDMA provider token (steering tag/memory handle)
         * @param length length of buffer
         */
        public Smb2RdmaTransform(long offset, int token, int length) {
            this.offset = offset;
            this.token = token;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            assertEquals(0, used, "readBytesWireFormat is unimplemented and must return 0");
        }
    
        private static byte[] subArray(byte[] src, int offset, int length) {
            byte[] dst = new byte[length];
            System.arraycopy(src, offset, dst, 0, length);
            return dst;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            int bytesRead = response.readDataWireFormat(data, 0, data.length);
    
            assertEquals(40, bytesRead, "Should read 40 bytes for the two entries.");
            assertNotNull(response.results, "Results should not be null.");
            assertEquals(2, response.results.length, "Should have 2 share entries.");
    
            SmbShareInfo share1 = (SmbShareInfo) response.results[0];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

            HandleGuid guid1 = new HandleGuid();
            HandleGuid guid2 = new HandleGuid();
    
            assertNotEquals(guid1, guid2);
            assertEquals(16, guid1.toBytes().length);
            assertEquals(16, guid2.toBytes().length);
        }
    
        @Test
        public void testHandleGuidRoundTrip() {
            HandleGuid original = new HandleGuid();
            byte[] bytes = original.toBytes();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top