public void WriteString(string s, bool write8BitLen = false) { this.Align8(); byte[] utf8 = Encoding.UTF8.GetBytes(s); if (write8BitLen) { this.WriteUI8((uint)utf8.Length + 1); } this.Write(utf8, 0, utf8.Length); this.Write(0); }