Example #1
0
 public void WriteStaticString(string s, int length)
 {
     byte[] bytes = Functions.ASCIIToBytes(s);
     byte[] copy  = new byte[length];
     Buffer.BlockCopy(bytes, 0, copy, 0, Math.Min(bytes.Length, length));
     WriteBytes(copy);
 }
Example #2
0
 public void WriteStaticString(string s)
 {
     WriteBytes(Functions.ASCIIToBytes(s));
 }