Nexus.Client.Games.Gamebryo.Tools.TESsnip.SubRecord.SetStrData C# (CSharp) Method

SetStrData() public method

Sets the sub-record's data tot he given string.
public SetStrData ( string s, bool nullTerminate ) : void
s string The string to which to set the sub-record's data.
nullTerminate bool Whether to nul-terminate the given string.
return void
		public void SetStrData(string s, bool nullTerminate)
		{
			if (nullTerminate) s += '\0';
			Data = System.Text.Encoding.Default.GetBytes(s);
		}