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);
        }