previous implementation erroneously attempted to detect whether vector API was used via the buffer pointer. This implementation has an explicit flag.