Sometimes, native methods specify `ref` here for no apparent reason. Is it required here?