J
John Aldrin
Hi,
I'm looking for info that explains the format of a string data type
when written to a stream using a BinaryWriter. I've looked all over
MSDN and Internet and I cannot seem to find it.
I did some simple testing and it seems that the string data is
prefixed w/a variable number of bytes that indicate the length.
1 byte if length <= 127
2 bytes if length > 127 - 1st byte has high order bit set, remaining
bits indicate number of bytes + (2nd byte * 127).
I haven't explored any further.
Thanx
jra
I'm looking for info that explains the format of a string data type
when written to a stream using a BinaryWriter. I've looked all over
MSDN and Internet and I cannot seem to find it.
I did some simple testing and it seems that the string data is
prefixed w/a variable number of bytes that indicate the length.
1 byte if length <= 127
2 bytes if length > 127 - 1st byte has high order bit set, remaining
bits indicate number of bytes + (2nd byte * 127).
I haven't explored any further.
Thanx
jra