AsmResolver.OutputStreamExtensions.WriteSerString C# (CSharp) Метод

WriteSerString() публичный статический Метод

Writes an UTF8 string to the stream.
public static WriteSerString ( this writer, string value ) : void
writer this The writer to use.
value string The string to write.
Результат void
        public static void WriteSerString(this IBinaryStreamWriter writer, string value)
        {
            if (value == null)
            {
                writer.WriteByte(0xFF);
                return;
            }

            var bytes = Encoding.UTF8.GetBytes(value);
            writer.WriteCompressedUInt32((uint)bytes.Length);
            writer.WriteBytes(bytes);
        }