示例#1
0
static tb_void_t tb_element_uint16_ncopy(tb_element_ref_t element, tb_pointer_t buff, tb_cpointer_t data, tb_size_t size)
{
    // check
    tb_assert_and_check_return(buff);

    // copy elements
    tb_memset_u16(buff, tb_p2u16(data), size);
}
示例#2
0
文件: uint16.c 项目: 1060460048/tbox
static tb_void_t tb_item_func_uint16_ncopy(tb_item_func_t* func, tb_pointer_t buff, tb_cpointer_t data, tb_size_t size)
{
    // check
    tb_assert_and_check_return(buff);

    // copy items
    tb_memset_u16(buff, tb_p2u16(data), size);
}