Add data transfer interface.

Signed-off-by: YunchaoChen <ytu_cyc@126.com>