SWFProcessing.SWFModeller.ABCDataTypeWriter.WriteString C# (CSharp) Method

WriteString() public method

Writes a lengthed string for ABC data. For SWF data, you should use WriteStringZ instead.
public WriteString ( string s ) : void
s string The string to write.
return void
        public void WriteString(string s)
        {
            if (s == ABCValues.AnyName)
            {
                s = string.Empty;
            }

            this.Align8();
            byte[] utf8 = Encoding.UTF8.GetBytes(s);
            this.WriteU30Packed((uint)utf8.Length);
            this.Write(utf8, 0, utf8.Length);
        }