-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
area-System.IOhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
Comment says:
// Writes a length-prefixed string to this stream in the BinaryWriter's
// current Encoding. This method first writes the length of the string as
// a four-byte unsigned integer, and then writes that many characters
// to the stream.
//
public virtual unsafe void Write(string value)
But the length is actually written as a packed (variable length) integer:
| Write7BitEncodedInt(len); |
I'm not sure if it's just local comment or if it's included in public docs, so I report this just in case.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.IOhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner