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

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

Writes an index with the specified size to the stream.
public static WriteIndex ( this writer, IndexSize indexSize, uint value ) : void
writer this The writer to use.
indexSize IndexSize The size of the index.
value uint The value to write.
Результат void
        public static void WriteIndex(this IBinaryStreamWriter writer, IndexSize indexSize, uint value)
        {
            if (indexSize == IndexSize.Short)
                writer.WriteUInt16((ushort)value);
            else
                writer.WriteUInt32(value);
        }