예제 #1
0
 /// <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));
     }
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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)
 {
 }