Esempio n. 1
0
 /// <summary>
 /// Gets the data contained within this <see cref="Slice"/>.
 /// </summary>
 public static IEnumerable <byte> GetData(this Slice slice) =>
 slice
 .PackedData
 .GetBytes(slice.NumData);
Esempio n. 2
0
 /// <summary>
 /// Gets the coefficients contained within this <see cref="Slice"/>.
 /// </summary>
 public static IEnumerable <bool> GetCoefficients(this Slice slice) =>
 slice
 .PackedCoefficients
 .GetBits(slice.NumCoefficients);