I think you'll want to store byteSize on PhoenixArray (it'll be null if not fixed width) and pass that through here to bytesFromByteBuffer