Nexus.Client.Games.Gamebryo.Tools.TESsnip.BaseRecord.WriteString C# (CSharp) Method

WriteString() protected static method

Writes a string to the given stream.
protected static WriteString ( BinaryWriter bw, string s ) : void
bw System.IO.BinaryWriter The stream to which to write the string.
s string The string to write.
return void
		protected static void WriteString(BinaryWriter bw, string s)
		{
			byte[] b = new byte[s.Length];
			for (int i = 0; i < s.Length; i++) b[i] = (byte)s[i];
			bw.Write(b, 0, s.Length);
		}