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); }
public void WriteStaticString(string s) { WriteBytes(Functions.ASCIIToBytes(s)); }