Home
last modified time | relevance | path

Searched refs:bytes_to_cut (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dvstr.c213 void vstr_cut_head_bytes(vstr_t *vstr, size_t bytes_to_cut) { in vstr_cut_head_bytes() argument
214 vstr_cut_out_bytes(vstr, 0, bytes_to_cut); in vstr_cut_head_bytes()
225 void vstr_cut_out_bytes(vstr_t *vstr, size_t byte_pos, size_t bytes_to_cut) { in vstr_cut_out_bytes() argument
228 } else if (byte_pos + bytes_to_cut >= vstr->len) { in vstr_cut_out_bytes()
231 …emmove(vstr->buf + byte_pos, vstr->buf + byte_pos + bytes_to_cut, vstr->len - byte_pos - bytes_to_… in vstr_cut_out_bytes()
232 vstr->len -= bytes_to_cut; in vstr_cut_out_bytes()
A Dmisc.h202 void vstr_cut_head_bytes(vstr_t *vstr, size_t bytes_to_cut);
203 void vstr_cut_tail_bytes(vstr_t *vstr, size_t bytes_to_cut);
204 void vstr_cut_out_bytes(vstr_t *vstr, size_t byte_pos, size_t bytes_to_cut);

Completed in 3 milliseconds