to NSData

fun ByteArray.toNSData(): NSData

Method used to convert a ByteArray into NSData object, will be blocked in memory the original byte array and then used the first address of the array to convert that array

Return

the byte array converted as NSData