Add API call to raw buffer conversion

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>