Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 739 for sizeof (1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // When
            int shortSize = shortReq.size();
            int longSize = longReq.size();
    
            // Then
            // SMB2_HEADER_LENGTH + 8 + path.length() * 2 (UTF-16LE)
            int expectedShortSize = Smb2Constants.SMB2_HEADER_LENGTH + 8 + shortPath.length() * 2;
            int expectedLongSize = Smb2Constants.SMB2_HEADER_LENGTH + 8 + longPath.length() * 2;
    
            // size8 method aligns to 8-byte boundary
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. cmd/data-scanner.go

    			sizeS.failedCount++
    		case replication.Completed, replication.CompletedLegacy:
    			tgtSizeS.replicatedSize += oi.Size
    			tgtSizeS.replicatedCount++
    			sizeS.replicatedSize += oi.Size
    			sizeS.replicatedCount++
    		}
    		sizeS.replTargetStats[arn] = tgtSizeS
    	}
    
    	if oi.ReplicationStatus == replication.Replica {
    		sizeS.replicaSize += oi.Size
    		sizeS.replicaCount++
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.5K bytes
    - Viewed (0)
  10. 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)
Back to top