Change Buffer constructor APIs