public static int WriteAscii(byte[] buffer, int offset, string text) { for (var i = 0; i < text.Length; i++) Write(buffer, offset + i, (byte) text[i]); return text.Length; }