/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
H A D | intercepted_data_impl.cpp | 27 if (key.empty() || key.size() > DBConstant::MAX_KEY_SIZE) { in CheckKey() 28 LOGE("Key is too large:%zu.", key.size()); in CheckKey() 36 if (value.size() > DBConstant::MAX_VALUE_SIZE) { in CheckValue() 37 LOGE("Value is too large:%zu.", value.size()); in CheckValue() 76 // New packet cannot exceed both twice the MTU and twice the original size. in InterceptedDataImpl() 79 std::max(totalLength_, static_cast<size_t>(DBConstant::MAX_MTU_SIZE)) * 2); // 2 times MAX_MTU size in InterceptedDataImpl() 99 if (index >= kvEntries_.size()) { in CheckIndex() 100 LOGE("Index is too large:%zu, size:%zu.", index, kvEntries_.size()); in CheckIndex() 179 for (size_t i = 0; i < dataItems_.size(); in GetKvEntries() [all...] |
/test/xts/hats/kernel/syscalls/fileio/readv/ |
H A D | ReadvApiTest.cpp | 67 * @tc.size : MediumTest 87 ssize_t size = readv(fd, iov, 2); in HWTEST_F() local 88 EXPECT_EQ(size, TEST_DATA_LEN); in HWTEST_F() 98 * @tc.size : MediumTest 116 ssize_t size = readv(-1, iov, 2); in HWTEST_F() local 117 EXPECT_EQ(size, -1); in HWTEST_F() 125 * @tc.size : MediumTest 131 ssize_t size; in HWTEST_F() local 151 size = readv(fd, iov, 2); in HWTEST_F() 152 EXPECT_EQ(size, TEST_DATA_LE in HWTEST_F() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | mjpeg2jpeg_bsf.c | 40 0x00, 0x10, // APP0 header size (including 47 0x00, // X thumbnail size 48 0x00, // Y thumbnail size 59 static uint8_t *append(uint8_t *buf, const uint8_t *src, int size) in append() argument 61 memcpy(buf, src, size); in append() 62 return buf + size; in append() 91 if (in->size < 12) { in mjpeg2jpeg_filter() 106 if (in->size < input_skip) { in mjpeg2jpeg_filter() 111 output_size = in->size - input_skip + in mjpeg2jpeg_filter() 121 output = append(output, in->data + input_skip, in->size in mjpeg2jpeg_filter() [all...] |
/third_party/f2fs-tools/fsck/ |
H A D | xattr.h | 33 __le16 e_value_size; /* size of attribute value */ 71 static inline int f2fs_acl_count(int size) in f2fs_acl_count() argument 74 size -= sizeof(struct f2fs_acl_header); in f2fs_acl_count() 75 s = size - 4 * sizeof(struct f2fs_acl_entry_short); in f2fs_acl_count() 77 if (size % sizeof(struct f2fs_acl_entry_short)) in f2fs_acl_count() 79 return size / sizeof(struct f2fs_acl_entry_short); in f2fs_acl_count() 125 #define XATTR_ALIGN(size) ((size + XATTR_ROUND) & ~XATTR_ROUND)
|
/third_party/elfutils/libdw/ |
H A D | libdw_alloc.c | 95 result->size = dbg->mem_default_size in __libdw_alloc_tail() 97 result->remaining = result->size; in __libdw_alloc_tail() 120 size_t size = MAX (dbg->mem_default_size, in __libdw_allocate() local 123 struct libdw_memblock *newp = malloc (size); in __libdw_allocate() 129 newp->size = size - offsetof (struct libdw_memblock, mem); in __libdw_allocate() 130 newp->remaining = (uintptr_t) newp + size - (result + minsize); in __libdw_allocate()
|
/third_party/gn/src/gn/ |
H A D | c_include_iterator.cc | 27 while (new_begin < str.size() && in TrimLeadingWhitespace() 66 static const size_t kIncludeLen = std::size(kInclude) - 1; // No null. in ExtractInclude() 68 static const size_t kImportLen = std::size(kImport) - 1; // No null. in ExtractInclude() 141 begin_char + static_cast<int>(include_contents.size()))); in GetNextIncludeString() 155 if (offset_ == file_.size()) in GetNextLine() 159 while (offset_ < file_.size() && file_[offset_] != '\n') in GetNextLine() 167 if (offset_ < file_.size()) in GetNextLine()
|
H A D | resolved_target_deps_unittest.cc | 11 EXPECT_EQ(0u, deps.size()); in TEST() 38 EXPECT_EQ(5u, deps.size()); in TEST() 40 EXPECT_EQ(2u, deps.public_deps().size()); in TEST() 44 EXPECT_EQ(2u, deps.private_deps().size()); in TEST() 48 EXPECT_EQ(1u, deps.data_deps().size()); in TEST() 51 EXPECT_EQ(4u, deps.linked_deps().size()); in TEST() 57 EXPECT_EQ(5u, deps.all_deps().size()); in TEST()
|
/third_party/curl/docs/examples/ |
H A D | ftpuploadresume.c | 34 static size_t getcontentlengthfunc(void *ptr, size_t size, size_t nmemb, in getcontentlengthfunc() argument 44 return size * nmemb; in getcontentlengthfunc() 48 static size_t discardfunc(void *ptr, size_t size, size_t nmemb, void *stream) in discardfunc() argument 52 return size * nmemb; in discardfunc() 56 static size_t readfunc(char *ptr, size_t size, size_t nmemb, void *stream) in readfunc() argument 64 n = fread(ptr, size, nmemb, f) * size; in readfunc()
|
H A D | xmlstream.c | 46 size_t size; member 66 state->characters.size = 0; in startElement() 74 char *ptr = realloc(mem->memory, mem->size + len + 1); in characterDataHandler() 83 memcpy(&(mem->memory[mem->size]), s, len); in characterDataHandler() 84 mem->size += len; in characterDataHandler() 85 mem->memory[mem->size] = 0; in characterDataHandler() 93 printf("%5lu %10lu %s\n", state->depth, state->characters.size, name); in endElement()
|
/third_party/benchmark/src/ |
H A D | colorprint.cc | 90 std::size_t size = 256; in FormatString() local 92 auto ret = vsnprintf(local_buff, size, msg, args_cp); in FormatString() 102 if (static_cast<size_t>(ret) < size) { in FormatString() 106 size = static_cast<size_t>(ret) + 1; // + 1 for the null byte in FormatString() 107 std::unique_ptr<char[]> buff(new char[size]); in FormatString() 108 ret = vsnprintf(buff.get(), size, msg, args); in FormatString() 109 BM_CHECK(ret > 0 && (static_cast<size_t>(ret)) < size); in FormatString()
|
/third_party/alsa-utils/topology/nhlt/intel/ |
H A D | intel-nhlt.c | 54 static void print_array_values(struct dai_values *values, int size) in print_array_values() argument 59 for (i = 0; i < size; i++, values++) { in print_array_values() 69 int find_set_values(struct dai_values *values, int size, snd_config_t *dai_cfg, in find_set_values() argument 91 for (j = 0, temp_val = values; j < size; j++, temp_val++) { in find_set_values() 106 for (j = 0, temp_val = values; j < size; j++, temp_val++) { in find_set_values() 114 for (j = 0, temp_val = values; j < size; j++, temp_val++) { in find_set_values() 124 print_array_values(values, size); in find_set_values()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/breakiter/ |
H A D | DictionaryBreakEngine.java | 22 // List size, limited by the maximum number of words in the dictionary 104 public int size() { in size() method in DictionaryBreakEngine.DequeI 109 return size() == 0; in isEmpty() 133 assert size() > 0; in pop() 138 assert size() > 0; in peek() 143 assert size() > 0; in peekLast() 148 assert size() > 0; in pollLast() 162 assert i < size(); in elementAt()
|
/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_busdma.h | 55 * address of a memory page having size USB_PAGE_SIZE. 126 usb_size_t size; member 138 usb_size_t size, usb_size_t align); 140 usb_size_t size, usb_size_t align); 141 uint8_t usb_pc_dmamap_create(struct usb_page_cache *pc, usb_size_t size); 142 uint8_t usb_pc_load_mem(struct usb_page_cache *pc, usb_size_t size, 156 void usb_dma_cache_invalid(void *addr, unsigned int size); 157 void usb_dma_cache_flush(void *addr, unsigned int size);
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | DictionaryBreakEngine.java | 22 // List size, limited by the maximum number of words in the dictionary 104 int size() { in size() method in DictionaryBreakEngine.DequeI 109 return size() == 0; in isEmpty() 133 assert size() > 0; in pop() 138 assert size() > 0; in peek() 143 assert size() > 0; in peekLast() 148 assert size() > 0; in pollLast() 162 assert i < size(); in elementAt()
|
/third_party/libuv/src/unix/ |
H A D | haiku.c | 36 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument 41 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath() 49 abspath_len = uv__strscpy(buffer, abspath, *size); in uv_exepath() 50 *size -= 1; in uv_exepath() 51 if (abspath_len >= 0 && *size > (size_t)abspath_len) in uv_exepath() 52 *size = (size_t)abspath_len; in uv_exepath()
|
/third_party/lzma/CPP/7zip/Common/ |
H A D | StreamObjects.h | 38 void Init(const Byte *data, size_t size, IUnknown *ref = NULL)
41 _size = size;
52 void Create_BufInStream_WithReference(const void *data, size_t size, IUnknown *ref, ISequentialInStream **stream);
53 void Create_BufInStream_WithNewBuffer(const void *data, size_t size, ISequentialInStream **stream);
100 void Init(Byte *buffer, size_t size)
104 _size = size;
143 void Init(UInt64 size) throw();
|
/third_party/jerryscript/jerry-core/jmem/ |
H A D | jmem.h | 139 uint32_t size; /**< Size of region */ member 145 void *jmem_heap_alloc_block (const size_t size); 146 void *jmem_heap_alloc_block_null_on_error (const size_t size); 148 void jmem_heap_free_block (void *ptr, const size_t size); 156 size_t size; /**< heap total size */ member 209 * if it was allocated (i.e. if the array's size was non-zero). 306 void *jmem_pools_alloc (size_t size); 307 void jmem_pools_free (void *chunk_p, size_t size);
|
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_cl.c | 40 cl->size = 0; in v3dv_cl_init() 70 bool ok = v3dv_bo_map(cl->job->device, bo, bo->size); in cl_alloc_bo() 88 cl->size = cl->bo->size; in cl_alloc_bo() 99 if (offset + space <= cl->size) { in v3dv_cl_ensure_space() 118 if (cl->size > 0) { in v3dv_cl_ensure_space_with_branch() 126 if (v3dv_cl_offset(cl) + space <= cl->size) in v3dv_cl_ensure_space_with_branch()
|
/third_party/node/lib/internal/fs/ |
H A D | read_file_context.js | 33 if (context.pos === context.size || bytesRead === 0) { 36 if (context.size === 0) { 37 // Unknown size, just read until we don't get bytes. 55 if (context.size === 0) 57 else if (context.pos < context.size) 75 this.size = 0; 94 if (this.size === 0) { 102 length = MathMin(kReadFileBufferLength, this.size - this.pos);
|
/third_party/node/deps/v8/third_party/zlib/google/ |
H A D | compression_utils_unittest.cc | 36 std::string data(reinterpret_cast<const char*>(kData), std::size(kData)); in TEST() 41 std::size(kCompressedData)); in TEST() 47 std::size(kCompressedData)); in TEST() 53 std::size(kData)); in TEST() 62 std::size(kData)); in TEST() 87 std::size(kData)); in TEST() 90 std::size(kCompressedData)); in TEST()
|
/third_party/node/deps/zlib/google/ |
H A D | compression_utils_unittest.cc | 36 std::string data(reinterpret_cast<const char*>(kData), std::size(kData)); in TEST() 41 std::size(kCompressedData)); in TEST() 47 std::size(kCompressedData)); in TEST() 53 std::size(kData)); in TEST() 62 std::size(kData)); in TEST() 87 std::size(kData)); in TEST() 90 std::size(kCompressedData)); in TEST()
|
/third_party/node/test/parallel/ |
H A D | test-webcrypto-digest.js | 143 async function testDigest(size, name) { 146 Buffer.from(kSourceData[size], 'hex')); 150 kDigestedData[name.toLowerCase()][size]); 155 Object.keys(kSourceData).forEach((size) => { 161 variations.push(testDigest(size, upCase)); 162 variations.push(testDigest(size, downCase)); 163 variations.push(testDigest(size, mixedCase));
|
/third_party/node/deps/v8/src/wasm/ |
H A D | sync-streaming-decoder.cc | 29 buffer_.emplace_back(bytes.size()); 30 CHECK_EQ(buffer_.back().size(), bytes.size()); 31 std::memcpy(buffer_.back().data(), bytes.data(), bytes.size()); 32 buffer_size_ += bytes.size(); 40 std::memcpy(destination, chunk.data(), chunk.size()); 41 destination += chunk.size();
|
/third_party/node/src/ |
H A D | node_sea.cc | 36 size_t size; in FindSingleExecutableCode() 42 postject_find_resource("NODE_JS_CODE", &size, &options)); in FindSingleExecutableCode() 45 postject_find_resource("NODE_JS_CODE", &size, nullptr)); in FindSingleExecutableCode() 47 return {code, size}; in FindSingleExecutableCode() 62 // memory/binary size - using UTF16 by default results in twice of the size in GetSingleExecutableCode() 67 simdutf::utf16_length_from_utf8(sea_code.data(), sea_code.size()); in GetSingleExecutableCode() 71 sea_code.size(), in GetSingleExecutableCode() 99 argc = new_argv.size() - 1; in FixupArgsForSEA()
|
/third_party/mesa3d/src/mesa/vbo/ |
H A D | vbo_context.c | 57 unsigned size, const void *pointer) in init_array() 61 vbo_set_vertex_format(&attrib->Format, size, GL_FLOAT); in init_array() 118 unsigned size; in init_mat_currval() local 126 size = 1; in init_mat_currval() 130 size = 3; in init_mat_currval() 133 size = 4; in init_mat_currval() 137 init_array(ctx, attrib, size, ctx->Light.Material.Attrib[i]); in init_mat_currval() 56 init_array(struct gl_context *ctx, struct gl_array_attributes *attrib, unsigned size, const void *pointer) init_array() argument
|