- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,056 for sizeOf (0.05 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: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:37 - 4.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/MemoryUtil.java
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:37 - 4.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
int64_t dims[] = {2, 2}; double data[] = {1.0, 2.0, 3.0, 4.0}; TF_Status* status = TF_NewStatus(); TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_DOUBLE, &dims[0], sizeof(dims) / sizeof(int64_t), status); memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
Registered: 2024-11-05 12:39 - Last Modified: 2024-02-21 22:37 - 23.5K bytes - Viewed (0) -
ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch
- return s; - } - while (c != '\0'); - - zero_fill: - do - *++s1 = '\0'; - while (--n > 0); - - return s; + size_t size = __strnlen (s2, n); + if (size != n) + memset (s1 + size, '\0', n - size); + return memcpy (s1, s2, size); } libc_hidden_builtin_def (strncpy) diff --git a/sysdeps/gnu/bits/utmp.h b/sysdeps/gnu/bits/utmp.h index aed2750..434a533 100644
Registered: 2024-11-05 12:39 - Last Modified: 2023-09-18 14:52 - 42.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
[[0,0], * [[0,0], = [[0,0], [0,0]] [0,0]] [0,0]] */ // Build an abstract input tensor. int64_t dims[] = {2, 2}; // Matrices will be 2 x 2 int num_dims = sizeof(dims) / sizeof(dims[0]); float vals[] = {0.0f, 0.0f, 0.0f, 0.0f}; TFE_Context* eager_ctx = TF_ExecutionContextGetTFEContext(ctx, status.get()); TFE_TensorHandle* t =
Registered: 2024-11-05 12:39 - Last Modified: 2024-10-12 05:11 - 39.1K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
static void BoolDeallocator(void* data, size_t, void* arg) { delete[] static_cast<bool*>(data); } static void Int32Deallocator(void* data, size_t, void* arg) { delete[] static_cast<int32_t*>(data); } static void DoubleDeallocator(void* data, size_t, void* arg) { delete[] static_cast<double*>(data); } static void FloatDeallocator(void* data, size_t, void* arg) { delete[] static_cast<float*>(data); }
Registered: 2024-11-05 12:39 - Last Modified: 2021-10-15 03:16 - 17.8K bytes - Viewed (0) -
cmd/os-dirent_namelen_linux.go
package cmd import ( "bytes" "fmt" "syscall" "unsafe" ) func direntNamlen(dirent *syscall.Dirent) (uint64, error) { const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name)) nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0])) const nameBufLen = uint16(len(nameBuf)) limit := dirent.Reclen - fixedHdr if limit > nameBufLen { limit = nameBufLen } // Avoid bugs in long file names
Registered: 2024-11-03 19:28 - Last Modified: 2021-08-19 01:35 - 1.5K bytes - Viewed (0) -
tensorflow/c/c_api_macros.h
#ifndef TF_Bool #define TF_Bool unsigned char #endif // TF_Bool // Macro used to calculate struct size for maintaining ABI stability across // different struct implementations. #ifndef TF_OFFSET_OF_END #define TF_OFFSET_OF_END(TYPE, MEMBER) \ (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER)) #endif // TF_OFFSET_OF_END
Registered: 2024-11-05 12:39 - Last Modified: 2023-05-13 04:44 - 1.6K bytes - Viewed (0) -
src/archive/zip/writer.go
// if modification time is the only timestamp being encoded. var mbuf [9]byte // 2*SizeOf(uint16) + SizeOf(uint8) + SizeOf(uint32) mt := uint32(fh.Modified.Unix()) eb := writeBuf(mbuf[:]) eb.uint16(extTimeExtraID) eb.uint16(5) // Size: SizeOf(uint8) + SizeOf(uint32) eb.uint8(1) // Flags: ModTime eb.uint32(mt) // ModTime fh.Extra = append(fh.Extra, mbuf[:]...) }
Registered: 2024-11-05 11:13 - Last Modified: 2024-09-23 14:32 - 19.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_test.cc
CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); size_t size = TFE_TensorHandleDeviceMemorySize(copy, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); int64_t dims[] = {2, 2}; TFE_TensorHandle* copy_aliased = TFE_NewTensorHandleFromDeviceMemory( ctx, name, TF_FLOAT, dims, 2, data, size, &Deleter, copy, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
Registered: 2024-11-05 12:39 - Last Modified: 2023-08-03 03:14 - 31.5K bytes - Viewed (0)