Support object input for getBuffer/don't break API