P
PJ Olson
I have a string that I am writing to a binary file. I am trying to determine
the size of the string in bytes as it will be stored in the file.
Currently, the string is 19 characters in length so I am using the following
calculation to get the right size:
(timestamp.length * 2) - 14
But, the string could be variable size which will mess up my the
calculation. Is there a function that does this?
Thanks,
PJ
the size of the string in bytes as it will be stored in the file.
Currently, the string is 19 characters in length so I am using the following
calculation to get the right size:
(timestamp.length * 2) - 14
But, the string could be variable size which will mess up my the
calculation. Is there a function that does this?
Thanks,
PJ