AGS.Editor.DataFileWriter.WriteString C# (CSharp) Метод

WriteString() приватный статический Метод

Writes a string to the file as bytes. Length must be provided and will pad or truncate the text as necessary.
private static WriteString ( string src, int length, BinaryWriter writer ) : void
src string
length int
writer System.IO.BinaryWriter
Результат void
        private static void WriteString(string src, int length, BinaryWriter writer)
        {
            if ((writer == null) || (length <= 0)) return;
            byte[] bytes = GetBytes(src, length);
            writer.Write(bytes);
        }