Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 886 for zero (0.02 sec)

  1. schema/field.go

    						v = v.Elem()
    					} else {
    						return nil, true
    					}
    				}
    			}
    
    			fv, zero := v.Interface(), v.IsZero()
    			return fv, zero
    		}
    	}
    
    	if field.Serializer != nil {
    		oldValuerOf := field.ValueOf
    		field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
    			value, zero := oldValuerOf(ctx, v)
    
    			s, ok := value.(SerializerValuerInterface)
    			if !ok {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 32K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Strings.java

       *
       * @param string the string which should appear at the end of the result
       * @param minLength the minimum length the resulting string must have. Can be zero or negative, in
       *     which case the input string is always returned.
       * @param padChar the character to insert at the beginning of the result until the minimum length
       *     is reached
       * @return the padded string
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/DurableHandleResponse.java

        // The response structure is reserved and must be zero (8 bytes)
        private byte[] reserved = new byte[8];
    
        /**
         * Create a new durable handle response
         */
        public DurableHandleResponse() {
            // Reserved field initialized to zeros
        }
    
        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            for (int i = 0; i < 24; i++) {
                assertEquals((byte) (i + 1), resumeKey[i], "Resume key byte " + i + " should match");
            }
        }
    
        @Test
        @DisplayName("Test decode with non-zero buffer offset")
        void testDecodeWithOffset() throws SMBProtocolDecodingException {
            // Prepare test data with offset
            byte[] buffer = new byte[100];
            int offset = 50;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
            assertEquals(0, msg.writeParameterWordsWireFormat(new byte[10], index), "Expected zero returned regardless of index");
            assertEquals(0, msg.writeParameterWordsWireFormat(null, index), "Expected zero even when dst array is null");
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 3, 9, -5 })
        @DisplayName("writeBytesWireFormat always returns 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
                for (int i = 0; i < 20; i++) {
                    buf.enc_ndr_small(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            int result = request.size();
    
            // Then
            assertEquals(expectedSize, result);
            verify(request, times(1)).size();
        }
    
        @Test
        @DisplayName("Test size returns zero for empty message")
        void testSizeReturnsZero() {
            // Given
            when(request.size()).thenReturn(0);
    
            // When
            int result = request.size();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

        }
    
        @Test
        public void hasMoreElements_errorCodeNonZero_returnsFalse() {
            DummyResponse d = new DummyResponse();
            d.setErrorCode(123); // non-zero error
            assertFalse(d.hasMoreElements(), "errorCode non-zero overrides hasMore flag");
        }
    
        @Test
        public void nextElement_firstCall_flipsIsPrimary() {
            DummyResponse d = new DummyResponse();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

            assertFalse(boolQueryBuilder.mustNot().isEmpty());
        }
    
        public void test_execute_withZeroBoost() {
            // Test executing BoostQuery with zero boost value
            Term term = new Term("field", "zero");
            TermQuery termQuery = new TermQuery(term);
            BoostQuery boostQuery = new BoostQuery(termQuery, 0.0f);
    
            QueryContext context = new QueryContext("test", false);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/EvictingQueue.java

       *
       * <p>When {@code maxSize} is zero, elements will be evicted immediately after being added to the
       * queue.
       */
      public static <E> EvictingQueue<E> create(int maxSize) {
        return new EvictingQueue<>(maxSize);
      }
    
      /**
       * Returns the number of additional elements that this queue can accept without evicting; zero if
       * the queue is currently full.
       *
       * @since 16.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top