Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for GetLength (0.71 sec)

  1. src/main/java/jcifs/internal/smb2/rdma/RdmaChannelInfo.java

        public long getAddress() {
            return transform.getOffset();
        }
    
        /**
         * Get length of memory region
         *
         * @return length in bytes
         */
        public int getLength() {
            return transform.getLength();
        }
    
        /**
         * Get the underlying RDMA transform structure
         *
         * @return RDMA transform
         */
        public Smb2RdmaTransform getTransform() {
            return transform;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. cmd/httprange.go

    type HTTPRangeSpec struct {
    	// Does the range spec refer to a suffix of the object?
    	IsSuffixLength bool
    
    	// Start and end offset specified in range spec
    	Start, End int64
    }
    
    // GetLength - get length of range
    func (h *HTTPRangeSpec) GetLength(resourceSize int64) (rangeLength int64, err error) {
    	switch {
    	case resourceSize < 0:
    		return 0, errors.New("Resource size cannot be negative")
    
    	case h == nil:
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/PacUnicodeString.java

            this.maxLength = maxLength;
            this.pointer = pointer;
        }
    
        /**
         * Gets the actual length of the string in bytes.
         *
         * @return the string length
         */
        public short getLength() {
            return this.length;
        }
    
        /**
         * Gets the maximum allocated length for the string in bytes.
         *
         * @return the maximum string length
         */
        public short getMaxLength() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            assertNotNull(pacString, "The PacUnicodeString object should not be null.");
    
            // Verify that the getters return the correct values
            assertEquals(length, pacString.getLength(), "The length should match the value provided in the constructor.");
            assertEquals(maxLength, pacString.getMaxLength(), "The maxLength should match the value provided in the constructor.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

         * @return RDMA provider token
         */
        public int getToken() {
            return token;
        }
    
        /**
         * Get buffer length
         *
         * @return buffer length
         */
        public int getLength() {
            return length;
        }
    
        /**
         * Get size of this structure
         *
         * @return size in bytes (16)
         */
        public static int size() {
            return 16; // 8 + 4 + 4
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

         */
        @Override
        public int encode(final byte[] dst, final int dstIndex) {
            final int len = super.encode(dst, dstIndex);
            final int exp = size();
            final int actual = getLength();
            if (exp != actual) {
                // Log the size mismatch for debugging but don't throw exception
                // This can occur due to padding alignment differences between size8() and pad8()
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            byte[] data = new byte[] { 0x04, 0x00, 0x04, 0x00, 0x34, 0x12, 0x00, 0x00 };
            PacDataInputStream pdis = createInputStream(data);
            PacUnicodeString str = pdis.readUnicodeString();
            assertEquals(4, str.getLength());
            assertEquals(4, str.getMaxLength());
            assertEquals(0x1234, str.getPointer());
        }
    
        @Test
        public void testReadUnicodeStringMalformed() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

                        final Document doc = builder.parse(is);
                        final NodeList nodeList = doc.getElementsByTagName("component");
                        for (int i = 0; i < nodeList.getLength(); i++) {
                            final Node node = nodeList.item(i);
                            final NamedNodeMap attributes = node.getAttributes();
                            if (attributes != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/exception/ConstructorNotFoundRuntimeException.java

                if (arg != null) {
                    buf.append(arg.getClass().getName());
                } else {
                    buf.append("null");
                }
                buf.append(", ");
            }
            buf.setLength(buf.length() - 2);
            return new String(buf);
        }
    
        private static String getSignature(final Class<?>... paramTypes) {
            if (paramTypes == null || paramTypes.length == 0) {
                return "";
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

            }
            Throwable t = cause.getCause();
            while (t != null) {
                buf.append(t.getMessage()).append("], [");
                t = t.getCause();
            }
            buf.setLength(buf.length() - 4);
            return new String(buf);
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top