public override void Write(WritingContext context)
{
var writer = context.Writer;
writer.WriteByte((byte)NativeType);
writer.WriteByte((byte)ElementType);
if (ParameterIndex.HasValue)
{
writer.WriteCompressedUInt32((uint)ParameterIndex.Value);
if (NumberOfElements.HasValue)
writer.WriteCompressedUInt32((uint)NumberOfElements.Value);
}
}