Use ArrayRef instead of pointer and size. NFC