Added interface to get raw buffer from source.