/AliOS-Things-master/components/ota/2ndboot/updater/ |
A D | nbpatch.c | 94 unsigned char *new_buf = NULL; in ota_nbpatch() local 152 new_buf = malloc(new_size); in ota_nbpatch() 153 if (new_buf == NULL) { in ota_nbpatch() 233 new_buf[new_pos + i] += old_buf[i - base_pos]; in ota_nbpatch() 236 crc16_update(&crc_ctx, new_buf + new_pos, ctrl[0]); in ota_nbpatch() 251 crc16_update(&crc_ctx, new_buf + new_pos, ctrl[1]); in ota_nbpatch() 257 cal_crc = crc16_computer(new_buf, new_size); in ota_nbpatch() 263 ret = ota_patch_new_data(new_buf, new_size); in ota_nbpatch() 292 if(new_buf){ in ota_nbpatch() 293 free(new_buf); in ota_nbpatch() [all …]
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | vstr.c | 100 char *new_buf = m_renew(char, vstr->buf, vstr->alloc, vstr->alloc + size); in vstr_extend() local 101 char *p = new_buf + vstr->alloc; in vstr_extend() 103 vstr->buf = new_buf; in vstr_extend() 115 char *new_buf = m_renew(char, vstr->buf, vstr->alloc, new_alloc); in vstr_ensure_extra() local 117 vstr->buf = new_buf; in vstr_ensure_extra()
|
A D | objexcept.c | 441 byte *new_buf = m_renew_maybe(byte, pr->buf, pr->alloc, new_alloc, true); in exc_add_strn() local 442 if (new_buf == NULL) { in exc_add_strn() 447 pr->buf = new_buf; in exc_add_strn()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/api/ |
A D | api_lib.c | 466 netconn_recv_data(struct netconn *conn, void **new_buf) in netconn_recv_data() argument 478 LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;); in netconn_recv_data() 479 *new_buf = NULL; in netconn_recv_data() 579 *new_buf = buf; in netconn_recv_data() 595 netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf) in netconn_recv_tcp_pbuf() argument 600 return netconn_recv_data(conn, (void **)new_buf); in netconn_recv_tcp_pbuf() 613 netconn_recv(struct netconn *conn, struct netbuf **new_buf) in netconn_recv() argument 620 LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;); in netconn_recv() 621 *new_buf = NULL; in netconn_recv() 648 *new_buf = buf; in netconn_recv() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/ |
A D | bit_writer_utils.c | 27 uint8_t* new_buf; in BitWriterResize() local 40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize() 41 if (new_buf == NULL) { in BitWriterResize() 47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 50 bw->buf_ = new_buf; in BitWriterResize()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | cutils.c | 107 uint8_t *new_buf; in dbuf_realloc() local 114 new_buf = s->realloc_func(s->opaque, s->buf, new_size); in dbuf_realloc() 115 if (!new_buf) { in dbuf_realloc() 119 s->buf = new_buf; in dbuf_realloc()
|
A D | libunicode.c | 302 uint32_t *new_buf; in cr_realloc() local 306 new_buf = cr->realloc_func(cr->mem_opaque, cr->points, in cr_realloc() 308 if (!new_buf) in cr_realloc() 310 cr->points = new_buf; in cr_realloc()
|
A D | quickjs.c | 20450 char *buf, *new_buf; in ident_realloc() local 20460 new_buf = js_malloc(ctx, new_size); in ident_realloc() 20461 if (!new_buf) in ident_realloc() 20463 memcpy(new_buf, buf, size); in ident_realloc() 20465 new_buf = js_realloc(ctx, buf, new_size); in ident_realloc() 20466 if (!new_buf) in ident_realloc() 20469 *pbuf = new_buf; in ident_realloc() 21589 JSVarScope* new_buf; in push_scope() local 21594 if (!new_buf) in push_scope() 21599 if (!new_buf) in push_scope() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/ |
A D | api.h | 317 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf); 318 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf);
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/ |
A D | api.h | 315 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf); 316 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf);
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | idec_dec.c | 184 uint8_t* const new_buf = in AppendToMemBuffer() local 185 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf)); in AppendToMemBuffer() 186 if (new_buf == NULL) return 0; in AppendToMemBuffer() 187 memcpy(new_buf, old_base, current_size); in AppendToMemBuffer() 189 mem->buf_ = new_buf; in AppendToMemBuffer()
|