Allow buffer as datatype