/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
|
/third_party/libfuse/example/ |
H A D | null.c | 55 static int null_truncate(const char *path, off_t size, in null_truncate() argument 58 (void) size; in null_truncate() 77 static int null_read(const char *path, char *buf, size_t size, in null_read() argument 90 memset(buf, 0, size); in null_read() 91 return size; in null_read() 94 static int null_write(const char *path, const char *buf, size_t size, in null_write() argument 104 return size; in null_write()
|
/third_party/ltp/testcases/kernel/syscalls/pwritev/ |
H A D | pwritev03.c | 41 ssize_t *size; member 61 if (TST_RET != *tc->size) { in verify_direct_pwritev() 63 TST_RET, *tc->size); in verify_direct_pwritev() 73 SAFE_PREAD(1, fd, preadbuf, *tc->size, *tc->offset); in verify_direct_pwritev() 75 for (i = 0; i < *tc->size; i++) { in verify_direct_pwritev() 80 if (i != *tc->size) { in verify_direct_pwritev() 87 "with content 'a' expectedly ", *tc->size); in verify_direct_pwritev() 99 tst_brk(TBROK, "BLKSSZGET returned invalid block size %i", ret); in setup() 101 tst_res(TINFO, "Using block size %i", ret); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fgetxattr/ |
H A D | fgetxattr01.c | 14 * 2. Buffer size is smaller than attribute value size: 50 size_t size; member 58 .size = XATTR_SIZE_MAX, 65 .size = 1, 72 .size = XATTR_TEST_VALUE_SIZE, 80 TEST(fgetxattr(fd, tc[i].key, tc[i].value, tc[i].size)); in verify_fgetxattr() 117 tc[i].value = SAFE_MALLOC(tc[i].size); in setup() 118 memset(tc[i].value, 0, tc[i].size); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mbind/ |
H A D | mbind04.c | 50 unsigned long size = PAGES_ALLOCATED * page_size; in verify_policy() local 54 ptr = tst_numa_map(NULL, size); in verify_policy() 56 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy() 79 tst_numa_fault(ptr, size); in verify_policy() 80 tst_nodemap_count_pages(nodes, ptr, size); in verify_policy() 81 tst_numa_unmap(ptr, size); in verify_policy()
|
/third_party/ltp/testcases/network/stress/interface/ |
H A D | if-mtu-change.sh | 75 local size=$MAX_PACKET_SIZE 79 while [ $size -gt 0 ]; do 80 if ping -I $(tst_iface) -c1 -w1 -s $size $(tst_ipaddr rhost) >/dev/null; then 81 tst_res TINFO "use max MTU $size" 82 MAX_PACKET_SIZE=$size 85 size=$((size - 500))
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 13-1.c | 41 ssize_t size = 1024; in main() local 42 char data[size]; in main() 64 memset(data, 'a', size); in main() 66 if (write(fd, data, size) != size) { in main() 83 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 108 munmap(pa, size); in main()
|
/third_party/mesa3d/src/util/ |
H A D | blob.h | 45 * A blob is efficient in that it dynamically grows by doubling in size, so 52 * check for out_of_memory and handle fixed-size blobs correctly. 60 size_t size; member 97 * Init a new, fixed-size blob. 99 * A fixed-size blob has a fixed block of data that will not be freed on 103 * If a fixed-size blob has a NULL data pointer then the data is written but 104 * it otherwise operates normally. This can be used to determine the size 108 blob_init_fixed(struct blob *blob, void *data, size_t size); 124 blob_finish_get_buffer(struct blob *blob, void **buffer, size_t *size); 137 * Add some unstructured, fixed-size dat [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_linear.c | 42 size_t bytes = t->cols * t->block.size; in pipe_linear_to_tile() 66 size_t bytes = t->cols * t->block.size; in pipe_linear_from_tile() 95 t->tile.size = t->cols * t->rows * t->block.size; in pipe_linear_fill_info() 99 t->stride = t->cols * t->tiles_x * t->block.size; in pipe_linear_fill_info() 100 t->size = t->tiles_x * t->tiles_y * t->tile.size; in pipe_linear_fill_info()
|
/third_party/mksh/ |
H A D | lalloc.c | 55 remalloc(void *ptr, size_t size) in remalloc() argument 59 size = (size + 4095) & ~(size_t)4095; in remalloc() 61 if (lold && lold->len >= size) in remalloc() 64 if ((lp = mmap(NULL, size, PROT_READ | PROT_WRITE, in remalloc() 66 err(1, "remalloc: mmap(%zu)", size); in remalloc() 71 lp->len = size; in remalloc()
|
/third_party/musl/libc-test/src/functional/ |
H A D | fopencookie_test.c | 29 size_t size;
member 51 if (c->pos + len > c->size) {
in mwrite() 52 while (c->pos + len > c->size) {
in mwrite() 53 c->size *= EXPANSION_COEFFICIENT;
in mwrite() 55 newBuf = malloc(c->size);
in mwrite() 61 c->size = c->pos + len;
in mwrite() 121 myc.size = INIT_BUF_SIZE;
in main()
|
/third_party/node/deps/uv/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/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | SizedMRUCache_unittest.cpp | 17 Blob MakeBlob(size_t size) in MakeBlob() argument 20 for (uint8_t value = 0; value < size; ++value) in MakeBlob() 27 // Test a cache with a value that takes up maximum size. 34 EXPECT_EQ(32u, sizedCache.size()); in TEST() 38 EXPECT_EQ(32u, sizedCache.size()); in TEST() 67 EXPECT_EQ(32u, sizedCache.size()); in TEST() 78 EXPECT_EQ(32u, sizedCache.size()); in TEST() 98 EXPECT_EQ(32u, sizedCache.size()); in TEST()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
H A D | DebugSink.h | 24 if (currPos == needle.size()) in observe() 55 EscapedSink(DebugSink &owner) : mOwner(owner), mBegin(owner.size()) {} in EscapedSink() 63 const int end = mOwner.size(); in ~EscapedSink() 98 int size() { return mParent.size(); } in size() function in sh::DebugSink 109 const size_t begin = mParent.size(); in operator <<() 111 const size_t end = mParent.size(); in operator <<()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
H A D | VertexBuffer9.cpp | 35 unsigned int size, in initialize() 42 if (size > 0) in initialize() 50 HRESULT result = mRenderer->createVertexBuffer(size, flags, &mVertexBuffer); in initialize() 55 mBufferSize = size; in initialize() 119 angle::Result VertexBuffer9::setBufferSize(const gl::Context *context, unsigned int size) in setBufferSize() argument 121 if (size > mBufferSize) in setBufferSize() 123 return initialize(context, size, mDynamicUsage); in setBufferSize() 34 initialize(const gl::Context *context, unsigned int size, bool dynamicUsage) initialize() argument
|