The compatibility function also should have a const buffer pointer