![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^3: AES Interoperability between Perl and C#by ikegami (Patriarch) |
on Nov 17, 2005 at 22:22 UTC ( [id://509619]=note: print w/replies, xml ) | Need Help?? |
There's two common ways of storing a string. 1) NUL-terminated. The end of the string is marked by the first occurance of a NUL character. Pro: The string can be of any length. 2) PASCAL string. Named after the programming language. The length of the string is stored along with the string itself. Pro: The string can contain any character. Thelonius chose the latter. And in this case, the limit on the string length is (2^32)-1 (over 2 billion) since he's using a 32 bit signed int for the length field.
In Section
Seekers of Perl Wisdom
|
|