Exemple #1
0
 public string ToBinaryString()
 {
     if (IsByteAligned)
     {
         return(ParserTextUtils.BytesToBinaryString(_data));
     }
     else
     {
         return(ParserTextUtils.BytesToBinaryString(_data.Take(_data.Count - 1)) + ParserTextUtils.ByteToBinaryString(_data[^ 1], IndexInByte));
Exemple #2
0
 public int FindString(string s)
 {
     byte[] bytes = ParserTextUtils.StringAsByteArray(s, s.Length);
     return(FindBytes(bytes, bytes.Length << 3));
 }
 public override void PrettyWrite(IPrettyWriter iw)
 {
     iw.Append(ParserTextUtils.CamelCaseToLowerSpaced(GetType().Name));
     iw.Append($" (old obj = {OldObj}):");
 }