/// <summary> /// Constructor /// </summary> /// <param name="span">Data span</param> /// <param name="codedToken">Coded token info</param> public CodedToken32Data(HexBufferSpan span, CodedToken codedToken) : base(span, codedToken) { if (span.Length != 4) { throw new ArgumentOutOfRangeException(nameof(span)); } }
/// <summary> /// Constructor /// </summary> /// <param name="span">Data span</param> /// <param name="codedToken">Coded token info</param> protected CodedTokenData(HexBufferSpan span, CodedToken codedToken) : base(span) { if (codedToken == null) { throw new ArgumentNullException(nameof(codedToken)); } this.codedToken = codedToken; }
/// <summary> /// Constructor /// </summary> /// <param name="buffer">Buffer</param> /// <param name="position">Position</param> /// <param name="codedToken">Coded token info</param> public CodedToken32Data(HexBuffer buffer, HexPosition position, CodedToken codedToken) : this(new HexBufferSpan(buffer, new HexSpan(position, 4)), codedToken) { }