Home
last modified time | relevance | path

Searched refs:new_buf (Results 1 – 11 of 11) sorted by relevance

/AliOS-Things-master/components/ota/2ndboot/updater/
A Dnbpatch.c94 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 Dvstr.c100 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 Dobjexcept.c441 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 Dapi_lib.c466 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 Dbit_writer_utils.c27 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 Dcutils.c107 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 Dlibunicode.c302 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 Dquickjs.c20450 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 Dapi.h317 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 Dapi.h315 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 Didec_dec.c184 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()

Completed in 107 milliseconds