implement entry for bencode

Signed-off-by: Jack <jack.wgm@gmail.com>