In our previous episode, Michael Van Canneyt said: > > Nothing stops you though from writing a class helper that adds a > > WriteString method to TStream. > > > > Yes, I can create also own descendant etc. ... but I am asking for general > > solution, which will be useful for all. > > Sure: > We can simply add a boolean parameter 'WriteLength : Boolean = True' to the > existing call. > It keeps backwards compatibility, and allows you to write the strings with or > without length.
(If so I would make it an enum selecting 0,2,4 bytes length or so) _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel