1. 优化memLib
2. 优化结构体定义

Signed-off-by: liuning <liuning@LNPC.mshome.net>
修复memlib中的bug