Get the size of a ByteArray using pilot script

Hi All,

Is there a pilotscript function that allows me to get the size of a binary object (SciTegic.value.ByteArrayValue)? I have tried using the BitsetSize() function but it is quite slow (I'm guessing it is converting the ByteArrayValue to a BitSet which is causing the slowdown).

Many Thanks,

Adam