Home
last modified time | relevance | path

Searched refs:size (Results 2951 - 2975 of 32183) sorted by relevance

1...<<111112113114115116117118119120>>...1288

/third_party/lzma/CS/7zip/Common/
H A DCRC.cs34 public void Update(byte[] data, uint offset, uint size) in Update() argument
36 for (uint i = 0; i < size; i++) in Update()
42 static uint CalculateDigest(byte[] data, uint offset, uint size) in CalculateDigest() argument
46 crc.Update(data, offset, size); in CalculateDigest()
50 static bool VerifyDigest(uint digest, byte[] data, uint offset, uint size) in VerifyDigest() argument
52 return (CalculateDigest(data, offset, size) == digest); in VerifyDigest()
/third_party/node/deps/v8/tools/
H A Dshell-utils.h43 const byte* ReadFileAndRepeat(const char* name, int* size, int repeat) { in ReadFileAndRepeat() argument
45 *size = 0; in ReadFileAndRepeat()
52 *size = file_size * repeat; in ReadFileAndRepeat()
54 byte* chars = new byte[*size + 1]; in ReadFileAndRepeat()
61 for (int i = file_size; i < *size; i++) { in ReadFileAndRepeat()
64 chars[*size] = 0; in ReadFileAndRepeat()
/third_party/musl/porting/liteos_m/user/src/thread/
H A Dpthread_attr_get.c10 _LIBC_TEXT_SECTION int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) in pthread_attr_getguardsize() argument
39 _LIBC_TEXT_SECTION int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) in pthread_attr_getstack() argument
43 *size = a->_a_stacksize; in pthread_attr_getstack()
44 *addr = (void *)(a->_a_stackaddr - *size); in pthread_attr_getstack()
48 _LIBC_TEXT_SECTION int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) in pthread_attr_getstacksize() argument
50 *size = a->_a_stacksize; in pthread_attr_getstacksize()
/third_party/musl/src/passwd/
H A Dgetgrent.c18 size_t size=0, nmem=0; in getgrent() local
21 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); in getgrent()
28 size_t size=0, nmem=0; in getgrgid() local
29 __getgr_a(0, gid, &gr, &line, &size, &mem, &nmem, &res); in getgrgid()
36 size_t size=0, nmem=0; in getgrnam() local
37 __getgr_a(name, 0, &gr, &line, &size, &mem, &nmem, &res); in getgrnam()
/third_party/nghttp2/tests/
H A Dmalloc_wrapper.c42 static void *my_malloc(size_t size, void *mud) { in my_malloc() argument
46 return malloc(size); in my_malloc()
55 static void *my_calloc(size_t nmemb, size_t size, void *mud) { in my_calloc() argument
59 return calloc(nmemb, size); in my_calloc()
62 static void *my_realloc(void *ptr, size_t size, void *mud) { in my_realloc() argument
66 return realloc(ptr, size); in my_realloc()
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_util.h40 void lima_dump_shader(struct lima_dump *dump, void *data, int size, bool is_frag);
42 int size, uint32_t start);
44 int size, uint32_t start);
46 int size, uint32_t start);
48 int size, uint32_t start, uint32_t offset);
51 int size, bool is_float, const char *fmt, ...);
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_linear.h41 /** Block size in bytes */
42 unsigned size; member
54 unsigned size; member
61 /* size of each tile expressed in blocks */
94 if (t->tile.size != t->block.size * t->cols * t->rows) in pipe_linear_check_tile()
97 if (t->stride != t->block.size * t->cols * t->tiles_x) in pipe_linear_check_tile()
100 if (t->size < t->stride * t->rows * t->tiles_y) in pipe_linear_check_tile()
/third_party/skia/src/gpu/
H A DGrRingBuffer.h25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer() argument
27 , fTotalSize(size) in GrRingBuffer()
35 // Because of this, size needs to be a power of two. in GrRingBuffer()
36 SkASSERT(SkIsPow2(size)); in GrRingBuffer()
43 Slice suballocate(size_t size);
48 size_t size() const { return fTotalSize; } in size() function in GrRingBuffer
51 size_t getAllocationOffset(size_t size);
/third_party/selinux/libsepol/src/
H A Dsymtab.c21 size_t size; in symhash() local
26 size = strlen(keyp); in symhash()
27 for (p = keyp; ((size_t) (p - keyp)) < size; p++) in symhash()
30 return val & (h->size - 1); in symhash()
40 int symtab_init(symtab_t * s, unsigned int size) in symtab_init() argument
42 s->table = hashtab_create(symhash, symcmp, size); in symtab_init()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
H A Dmali_kbase_kinstr_jm.c112 * We can change the size of the structure and old user code will gracefully
113 * skip over the new size via `struct kbase_kinstr_jm_fd_out->size`.
128 * - additions to the end (for minor version bumps (i.e. only a size increase))
174 * @size: The number of changes that are allowed in @c data. Can be used
188 u32 size; member
193 * reader_changes_is_valid_size() - Determines if requested changes buffer size
195 * @size: The requested memory size
202 * * true - the size i
205 reader_changes_is_valid_size(const size_t size) reader_changes_is_valid_size() argument
232 reader_changes_init(struct reader_changes *const changes, const size_t size) reader_changes_init() argument
333 u32 head, tail, size, space; reader_changes_push() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_kinstr_jm.c111 * We can change the size of the structure and old user code will gracefully
112 * skip over the new size via `struct kbase_kinstr_jm_fd_out->size`.
127 * - additions to the end (for minor version bumps (i.e. only a size increase))
174 * @size: The number of changes that are allowed in @c data. Can be used
188 u32 size; member
193 * reader_changes_is_valid_size() - Determines if requested changes buffer size
195 * @size: The requested memory size
202 * * true - the size i
205 reader_changes_is_valid_size(const size_t size) reader_changes_is_valid_size() argument
232 reader_changes_init(struct reader_changes *const changes, const size_t size) reader_changes_init() argument
335 u32 head, tail, size, space; reader_changes_push() local
[all...]
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dnode_node_relative_container.cpp23 ArkUI_GuidelineOption* OH_ArkUI_GuidelineOption_Create(int32_t size) in OH_ArkUI_GuidelineOption_Create() argument
26 guidelinePtr->styles.resize(size); in OH_ArkUI_GuidelineOption_Create()
40 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetId()
48 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetDirection()
56 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetPositionStart()
65 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetPositionEnd()
74 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_GetId()
82 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_GetDirection()
90 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_GetPositionStart()
98 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_GetPositionEnd()
104 OH_ArkUI_BarrierOption_Create(int32_t size) OH_ArkUI_BarrierOption_Create() argument
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/pipeline/rsrendernode_fuzzer/
H A Drsrendernode_fuzzer.cpp42 * describe: get data from outside untrusted data(g_data) which size is according to sizeof(T)
88 bool RSBaseRenderNodeFuzzTest(const uint8_t* data, size_t size) in RSBaseRenderNodeFuzzTest() argument
96 g_size = size; in RSBaseRenderNodeFuzzTest()
136 bool RSCanvasRenderNodeFuzzTest(const uint8_t* data, size_t size) in RSCanvasRenderNodeFuzzTest() argument
144 g_size = size; in RSCanvasRenderNodeFuzzTest()
167 bool RSContextFuzzTest(const uint8_t* data, size_t size) in RSContextFuzzTest() argument
175 g_size = size; in RSContextFuzzTest()
187 bool RSDirtyRegionManagerFuzzTest(const uint8_t* data, size_t size) in RSDirtyRegionManagerFuzzTest() argument
195 g_size = size; in RSDirtyRegionManagerFuzzTest()
226 bool RSDisplayRenderNodeFuzzTest(const uint8_t* data, size_t size) in RSDisplayRenderNodeFuzzTest() argument
279 RSDrawCmdListFuzzTest(const uint8_t* data, size_t size) RSDrawCmdListFuzzTest() argument
308 RSOcclusionConfigFuzzTes(const uint8_t* data, size_t size) RSOcclusionConfigFuzzTes() argument
333 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/
H A Dentity_manager.cpp118 const auto id = static_cast<uint32_t>(entities_.size()); in Create()
147 const auto id = static_cast<uint32_t>(entities_.size()); in CreateReferenceCounted()
177 if (const uint32_t id = GetId(entity); id < entities_.size()) { in GetReferenceCounted()
201 if (const uint32_t id = GetId(entity); id < entities_.size()) { in Destroy()
217 for (uint32_t i = 0, count = static_cast<uint32_t>(entities_.size()); i < count; ++i) { in DestroyAllEntities()
234 if (id < entities_.size()) { in IsAlive()
247 const auto freeSize = freeList_.size(); in GetRemovedEntities()
250 if (id < entities_.size()) { in GetRemovedEntities()
253 if (id < entities_.size() - 1) { in GetRemovedEntities()
257 entities_.resize(entities_.size() in GetRemovedEntities()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/stream_test/
H A Dincremental_source_stream_test.cpp143 uint32_t size = 10; in HWTEST_F() local
144 uint32_t desiredSize = size; in HWTEST_F()
146 bool ret = ins->Peek(desiredSize, &data, size, readSize); in HWTEST_F()
165 uint32_t size = 10; in HWTEST_F() local
168 bool ret = ins->Peek(desiredSize, &data, size, readSize); in HWTEST_F()
187 uint32_t size = 10; in HWTEST_F() local
188 uint32_t desiredSize = size; in HWTEST_F()
190 bool ret = ins->Read(desiredSize, &data, size, readSize); in HWTEST_F()
209 uint32_t size = 10; in HWTEST_F() local
212 bool ret = ins->Read(desiredSize, &data, size, readSiz in HWTEST_F()
284 uint32_t size = 10; HWTEST_F() local
305 uint32_t size = 5; HWTEST_F() local
326 uint32_t size = 0; HWTEST_F() local
377 uint32_t size = 64; HWTEST_F() local
461 uint32_t size = 0; HWTEST_F() local
[all...]
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/
H A Dnetfirewall_parcel.cpp210 uint32_t size = static_cast<uint32_t>(list.size()); in MarshallingList() local
211 size = std::min(size, FIREWALL_MAX_LIST_SIZE); in MarshallingList()
212 if (!parcel.WriteUint32(size)) { in MarshallingList()
213 NETMGR_LOG_E("write netAddrList size to parcel failed"); in MarshallingList()
217 for (uint32_t index = 0; index < size; ++index) { in MarshallingList()
231 uint32_t size = 0; in UnmarshallingList() local
232 if (!parcel.ReadUint32(size)) { in UnmarshallingList()
233 NETMGR_LOG_E("Read UnmarshallingList list size faile in UnmarshallingList()
330 const std::string size = " size="; ToString() local
[all...]
/third_party/libuv/src/unix/
H A Dos390-syscalls.c112 if (len <= lst->size) in maybe_resize()
115 if (lst->size == 0) in maybe_resize()
119 event = lst->items[lst->size - 1]; in maybe_resize()
120 lst->items[lst->size - 1].fd = -1; in maybe_resize()
128 for (i = lst->size; i < newsize; ++i) in maybe_resize()
135 lst->size = newsize; in maybe_resize()
195 lst->size = 0; in child_fork()
219 lst->size = 0; in epoll_create1()
223 lst->items[lst->size - 1].fd = lst->msg_queue; in epoll_create1()
224 lst->items[lst->size in epoll_create1()
284 nmsgsfds_t size; epoll_wait() local
[all...]
/third_party/node/deps/uv/src/unix/
H A Dos390-syscalls.c112 if (len <= lst->size) in maybe_resize()
115 if (lst->size == 0) in maybe_resize()
119 event = lst->items[lst->size - 1]; in maybe_resize()
120 lst->items[lst->size - 1].fd = -1; in maybe_resize()
128 for (i = lst->size; i < newsize; ++i) in maybe_resize()
135 lst->size = newsize; in maybe_resize()
195 lst->size = 0; in child_fork()
219 lst->size = 0; in epoll_create1()
223 lst->items[lst->size - 1].fd = lst->msg_queue; in epoll_create1()
224 lst->items[lst->size in epoll_create1()
284 nmsgsfds_t size; epoll_wait() local
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DRenderEncoderBase.cpp169 "Indirect offset (%u) is out of bounds of indirect buffer %s size (%u).", in APIDrawIndirect()
200 "Indirect offset (%u) is out of bounds of indirect buffer %s size (%u).", in APIDrawIndexedIndirect()
270 uint64_t size) { in APISetIndexBuffer()
284 "Index buffer offset (%u) is not a multiple of the size (%u)" in APISetIndexBuffer()
290 "Index buffer offset (%u) is larger than the size (%u) of %s.", in APISetIndexBuffer()
295 if (size == wgpu::kWholeSize) { in APISetIndexBuffer()
296 size = remainingSize; in APISetIndexBuffer()
298 DAWN_INVALID_IF(size > remainingSize, in APISetIndexBuffer()
299 "Index buffer range (offset: %u, size: %u) doesn't fit in " in APISetIndexBuffer()
300 "the size ( in APISetIndexBuffer()
267 APISetIndexBuffer(BufferBase* buffer, wgpu::IndexFormat format, uint64_t offset, uint64_t size) APISetIndexBuffer() argument
327 APISetVertexBuffer(uint32_t slot, BufferBase* buffer, uint64_t offset, uint64_t size) APISetVertexBuffer() argument
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dio_win32.cc144 if (is_separator(path1[path1.size() - 1])) { in join_paths()
179 (!has_drive_letter(segments[0].c_str()) || segments.size() > 1)) { in normalize()
193 if (segments.size() == 1 && segments[0].size() == 2 && in normalize()
201 for (int i = 0; i < segments.size(); ++i) { in normalize()
209 if (!path.empty() && is_separator(p[path.size() - 1])) { in normalize()
234 int size = ::GetCurrentDirectoryW(0, nullptr); in as_windows_path() local
235 if (size == 0 && GetLastError() != ERROR_INSUFFICIENT_BUFFER) { in as_windows_path()
238 std::unique_ptr<WCHAR[]> wcwd(new WCHAR[size]); in as_windows_path()
239 ::GetCurrentDirectoryW(size, wcw in as_windows_path()
349 read(int fd, void* buffer, size_t size) read() argument
355 write(int fd, const void* buffer, size_t size) write() argument
423 int size = WideCharToMultiByte( wcs_to_mbs() local
444 int size = mbs_to_wcs() local
[all...]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DDecodeUtf8Test.java233 private void assertInvalidSlice(byte[] bytes, int index, int size) throws Exception { in assertInvalidSlice() argument
235 UNSAFE_PROCESSOR.decodeUtf8(bytes, index, size); in assertInvalidSlice()
241 SAFE_PROCESSOR.decodeUtf8(bytes, index, size); in assertInvalidSlice()
251 UNSAFE_PROCESSOR.decodeUtf8(direct, index, size); in assertInvalidSlice()
257 SAFE_PROCESSOR.decodeUtf8(direct, index, size); in assertInvalidSlice()
267 UNSAFE_PROCESSOR.decodeUtf8(heap, index, size); in assertInvalidSlice()
273 SAFE_PROCESSOR.decodeUtf8(heap, index, size); in assertInvalidSlice()
284 private void assertRoundTrips(String str, int index, int size) throws Exception { in assertRoundTrips() argument
286 if (size == -1) { in assertRoundTrips()
287 size in assertRoundTrips()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
H A Dfixed_array.h62 // A `FixedArray` provides a run-time fixed-size array, allocating a small array
150 // Creates an array initialized with the size and contents of `init_list`.
156 // range. The array's size will always be `std::distance(first, last)`.
171 // Assignments are deleted because they break the invariant that the size of a
176 // FixedArray::size()
179 size_type size() const { return storage_.size(); } in size() function in absl::FixedArray
193 bool empty() const { return size() == 0; } in empty()
197 // Returns the memory size of the fixed array in bytes.
198 size_t memsize() const { return size() * sizeo
216 ABSL_HARDENING_ASSERT(i < size()); return data()[i]; } const_reference operator[](size_type i) const { ABSL_HARDENING_ASSERT(i < size()); return data()[i]; } reference at(size_type i) { if (ABSL_PREDICT_FALSE(i >= size())) { base_internal::ThrowStdOutOfRange(�); } return data()[i]; } const_reference at(size_type i) const { if (ABSL_PREDICT_FALSE(i >= size()) operator []() argument
464 size_type size() const { return size_alloc_.template get<0>(); } size() function in absl::FixedArray::Storage
[all...]
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/convertbtmactobinary_fuzzer/
H A Dconvertbtmactobinary_fuzzer.cpp21 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
27 ConvertBtMacToBinary(reinterpret_cast<const char*>(rawData), size, binMac, size); in DoSomethingInterestingWithMyAPI() local
33 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
36 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/convertbtmactostr_fuzzer/
H A Dconvertbtmactostr_fuzzer.cpp21 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
27 ConvertBtMacToStr(binMac, size, rawData, size); in DoSomethingInterestingWithMyAPI()
33 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
36 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/converthexstringtobytes_fuzzer/
H A Dconverthexstringtobytes_fuzzer.cpp21 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
27 ConvertHexStringToBytes(outBuf, size, reinterpret_cast<const char*>(rawData), size); in DoSomethingInterestingWithMyAPI()
33 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
36 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()

Completed in 16 milliseconds

1...<<111112113114115116117118119120>>...1288