Esempio n. 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));
     }
 }
Esempio n. 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;
 }
Esempio n. 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)
 {
 }