Example #1
0
 public static BitVector128 ToBitVector(this BitString src, N128 n)
 => BitVector128.FromBitString(src);
Example #2
0
 public static Vec128 <T> ToCpuVec <T>(this BitString src, N128 n)
     where T : unmanaged
 => src.Pack().As <byte, T>().ToSpan128().ToCpuVec128();
Example #3
0
 public static BitVector32 ToBitVector(this BitString src, N32 n)
 => BitVector32.FromBitString(src);
Example #4
0
 public static BitVector64 ToBitVector(this BitString src, N64 n)
 => BitVector64.FromBitString(src);
Example #5
0
 public static BitBlock <BitBlock10> ToBitBlock(this BitString src, N10 n)
 => BitBlock.FromSpan <BitBlock10>(src.BitSeq);
Example #6
0
 public static BitString ToBitString <T>(this Memory <T> src)
     where T : struct
 => BitString.FromScalars(src);
Example #7
0
 public static BitString ToBitString(this ushort src)
 => BitString.FromScalar(src);
Example #8
0
 public static BitBlock <BitBlock21> ToBitBlock(this BitString src, N21 n)
 => BitBlock.FromSpan <BitBlock21>(src.BitSeq);
Example #9
0
 public static BitString Reverse(this BitString src)
 {
     src.BitSeq.Reverse();
     return(src);
 }
Example #10
0
 public static BitString ToBitString(this byte src)
 => BitString.FromScalar(src);
Example #11
0
 public static BitString ToBitString <T>(this Vec256 <T> src)
     where T : struct
 => BitString.FromScalars(src.ToSpan());
Example #12
0
 public static BitString ToBitString(this UInt128 src)
 => BitString.FromScalar(src.hi) + BitString.FromScalar(src.lo);
Example #13
0
 public static BitString ToBitString(this ReadOnlySpan <Bit> src)
 => BitString.FromBits(src);
Example #14
0
 public static Vec256 <T> ToCpuVec <T>(this BitString src, N256 n)
     where T : unmanaged
 => src.Pack().As <byte, T>().ToSpan256().ToCpuVec256();
Example #15
0
 public static BitString ToBitString(this ulong src)
 => BitString.FromScalar(src);
Example #16
0
 public static BitVector8 Parse(string src)
 => FromBitString(BitString.Parse(src));
Example #17
0
 public static BitString ToBitString(this float src)
 => BitString.FromScalar(src);
Example #18
0
 public static BitBlock <BitBlock32> ToBitBlock(this BitString src, N32 n)
 => BitBlock.FromSpan <BitBlock32>(src.BitSeq);
Example #19
0
 public static BitVector16 ToBitVector(this BitString src, N16 n)
 => BitVector16.FromBitString(src);
Example #20
0
 public static BitVector64 FromBitString(BitString src)
 => src.TakeUInt64();
Example #21
0
 public static BitString ToBitString <T>(this Span <T> src, BitSize?maxlen = null)
     where T : struct
 => BitString.FromScalars(src, maxlen);