Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,382 for sizeOf (0.04 sec)

  1. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertEquals(16L, MemoryUtil.sizeOf(Boolean.TRUE));
            assertEquals(32L, MemoryUtil.sizeOf(new Date()));
            assertEquals(80L, MemoryUtil.sizeOf(LocalDateTime.now()));
            assertEquals(2128L, MemoryUtil.sizeOf(ZonedDateTime.now()));
            assertEquals(66L, MemoryUtil.sizeOf("1234567890"));
            assertEquals(76L, MemoryUtil.sizeOf("12345678901234567890"));
            assertEquals(66L, MemoryUtil.sizeOf(new String[] { "1234567890" }));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/MemoryUtil.java

         * Converts byte count to human-readable size format.
         *
         * @param size the size in bytes
         * @return formatted size string
         */
        public static String byteCountToDisplaySize(final long size) {
            return byteCountToDisplaySize(BigInteger.valueOf(size));
        }
    
        private static String byteCountToDisplaySize(final BigInteger size) {
            Objects.requireNonNull(size, "size");
            final String displaySize;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

    }
    
    const char* TF_GraphDebugString(TF_Graph* graph, size_t* len) {
      tensorflow::mutex_lock c(graph->mu);
      const auto& debug_str = graph->graph.ToGraphDefDebug().DebugString();
      *len = debug_str.size();
      char* ret = static_cast<char*>(malloc(*len + 1));
      memcpy(ret, debug_str.c_str(), *len + 1);
      return ret;
    }
    
    char* TF_FunctionDebugString(TF_Function* func, size_t* len) {
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 03:53:25 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

        /**
         * Calculates the memory size of a document data map.
         * This is useful for monitoring memory usage during indexing operations.
         *
         * @param dataMap the document data as a map of field names to values
         * @return the estimated memory size in bytes
         */
        public long calculateDocumentSize(final Map<String, Object> dataMap) {
            return MemoryUtil.sizeOf(dataMap);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.1K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

      size_t size = results.missing_unused_input_map_keys.size();
      tf_results->missing_unused_key_names.resize(size);
      tf_results->missing_unused_key_indexes.resize(size);
    
      for (int i = 0; i < size; ++i) {
        TensorId id = results.missing_unused_input_map_keys[i];
        tf_results->missing_unused_key_names_data.emplace_back(id.first);
        tf_results->missing_unused_key_names[i] =
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue May 13 06:30:43 UTC 2025
    - 102.3K bytes
    - Viewed (0)
  6. doc/go_spec.html

    </pre>
    
    <p>
    A (variable of) type <code>T</code> has <i>variable size</i> if <code>T</code>
    is a <a href="#Type_parameter_declarations">type parameter</a>, or if it is an
    array or struct type containing elements
    or fields of variable size. Otherwise the size is <i>constant</i>.
    Calls to <code>Alignof</code>, <code>Offsetof</code>, and <code>Sizeof</code>
    are compile-time <a href="#Constant_expressions">constant expressions</a> of
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

            }
    
            @Test
            @DisplayName("Size should be consistent across multiple calls")
            void testSizeConsistency() {
                int size1 = echoRequest.size();
                int size2 = echoRequest.size();
    
                assertEquals(size1, size2);
            }
    
            @Test
            @DisplayName("Size should be 72 bytes (64 header + 4 body aligned to 8)")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/BufferCacheImplTest.java

            }
    
            // Since cache cannot store, getBuffer must create a new buffer of configured size
            byte[] got = impl.getBuffer();
            assertNotNull(got);
            assertEquals(8, got.length, "Allocation uses configured maximum size when cache is empty");
            assertNotSame(supplied, got, "Zero-sized cache must not return the released instance");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

        }
    
        @Test
        @DisplayName("Test size method without input buffer")
        void testSizeWithoutInputBuffer() {
            request = new Smb2QueryInfoRequest(mockConfig);
    
            int size = request.size();
    
            // Expected size calculation: size8(SMB2_HEADER_LENGTH + 40)
            // size8 rounds up to nearest multiple of 8
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
    
            // When
            int size = request.size();
    
            // Then
            // Verify size includes SMB2_HEADER_LENGTH
            assertTrue(size >= Smb2Constants.SMB2_HEADER_LENGTH);
    
            // The actual calculation: (SMB2_HEADER_LENGTH + 4 + 7) & ~7
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top