Esempio n. 1
0
 public sealed override byte[] SetString(string value, int maxLength, int PadToSize = 0, ushort PadWith = 0)
 {
     if (PadToSize == 0)
     {
         PadToSize = maxLength + 1;
     }
     return(StringConverter12.SetString1(value, maxLength, Japanese, PadToSize, (byte)PadWith));
 }
Esempio n. 2
0
 public override void SetMessage(string line1, string line2)
 {
     if (US)
     {
         StringConverter12.SetString1(line2, 0x10, false, 0x10, StringConverter12.G1TerminatorCode).CopyTo(Data, 0x11);
         bool hasLine2 = Data[0x11] != StringConverter12.G1TerminatorCode;
         byte padChar  = !hasLine2 ? StringConverter12.G1TerminatorCode : (byte)0x7F; // space
         StringConverter12.SetString1(line1, 0x10, false, 0x10, padChar).CopyTo(Data, 0);
         Data[0x10] = 0x4E;
     }
 }