internal override void Serialize(IDefinitionWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            writer.WriteValueU8((byte)this.NativeType);

            if (HasBaseType(this.NativeType) == true)
            {
                writer.WriteReference(this.BaseType);
            }

            if (this.NativeType == NativeType.StaticArray)
            {
                writer.WriteValueS32(this.ArraySize);
            }
        }
Beispiel #2
0
 public static uint Write(object argument, IDefinitionWriter writer)
 {
     writer.WriteValueS32((int)argument);
     return(4);
 }