Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for findTermination (0.1 sec)

  1. src/test/java/jcifs/util/StringsTest.java

                // When
                int terminationPos = Strings.findTermination(bufferWithTermination, 0, bufferWithTermination.length);
    
                // Then
                assertEquals(stringBytes.length, terminationPos, "Should find termination at correct position");
            }
    
            @Test
            @DisplayName("findTermination should throw exception when termination not found")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Strings.java

         * @param bufferIndex the starting position in the buffer
         * @param maxLen the maximum length to search
         * @return position of terminating null byte
         */
        public static int findTermination(final byte[] buffer, final int bufferIndex, final int maxLen) {
            int len = 0;
            while (buffer[bufferIndex + len] != (byte) 0x00) {
                len++;
                if (len > maxLen) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                        this.server.oemDomainName = Strings.fromUNIBytes(buffer, bufferIndex, len);
                    } else {
                        len = Strings.findTermination(buffer, bufferIndex, 256);
                        this.server.oemDomainName = Strings.fromOEMBytes(buffer, bufferIndex, len, getConfig());
                    }
                    bufferIndex += len;
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

                }
                return Strings.fromUNIBytes(src, srcIndex, Strings.findUNITermination(src, srcIndex, maxLen));
            }
    
            return Strings.fromOEMBytes(src, srcIndex, Strings.findTermination(src, srcIndex, maxLen), getConfig());
        }
    
        /**
         * Reads a null-terminated string from the buffer with bounds checking
         * @param src source buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
Back to top