- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 926 for sizeof (0.04 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
assertEquals(24, ServerMessageBlock2.size8(17)); } @Test @DisplayName("Should calculate size8 with alignment") void testSize8WithAlignment() { assertEquals(8, ServerMessageBlock2.size8(8, 0)); // size8(10, 2): rem = 10%8 - 2 = 2 - 2 = 0, returns 10 assertEquals(10, ServerMessageBlock2.size8(10, 2));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// When int size = req.size(); // Then int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24; int alignedSize = (expectedSize + 7) & ~7; // size8 alignment assertEquals(alignedSize, size); } @Test @DisplayName("Should write correct bytes to wire format with session binding") void testWriteBytesWireFormatWithSessionBinding() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
assertEquals(expectedSize, request.size()); } @Test @DisplayName("Test size calculation with empty path") void testSizeWithEmptyPath() { request = new Smb2CreateRequest(mockConfig, ""); int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 56; expectedSize += 8; // size8(1) - empty name gets 1 byte expectedSize = ((expectedSize + 7) / 8) * 8; // size8(size)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0)