调试编码与解码

Signed-off-by: evanq <cppmain@gmail.com>