public TableNameHeader(RandomAccess rx) : base(rx, readTable: false) { AssertIsType(0xFE); Name = rx.FixedLengthString(rx.Length - rx.Position); }
/// <summary> /// Instantiates a new STRING from the given binary reader. /// </summary> /// <param name="rx">The reader from which to read the string data.</param> /// <param name="length">The length of the string.</param> /// <param name="encoding">The encoding to use to decode the string data.</param> public TpsString(RandomAccess rx, int length, Encoding encoding) { if (rx == null) { throw new ArgumentNullException(nameof(rx)); } if (encoding == null) { throw new ArgumentNullException(nameof(encoding)); } Value = rx.FixedLengthString(length, encoding); }