Add the io api

Signed-off-by: lizhizhou <lzz@meteroi.com>