Пример #1
0
        public void Serialize(ref JsonWriter writer, uint[] value, IJsonFormatterResolver formatterResolver)
        {
            if (value == null)
            {
                writer.WriteNull();
                return;
            }

            writer.WriteBeginArray();

            FourCCFormatter formatter = new FourCCFormatter();

            foreach (uint val in value)
            {
                formatter.Serialize(ref writer, val, formatterResolver);
            }

            writer.WriteEndArray();
        }
Пример #2
0
 public void Serialize(ref JsonWriter writer, AssetRepoType value, IJsonFormatterResolver formatterResolver)
 {
     FourCCFormatter.SerializeUint(ref writer, (ushort)value, formatterResolver, "X3");
 }
Пример #3
0
 public AssetRepoType Deserialize(ref JsonReader reader, IJsonFormatterResolver formatterResolver)
 {
     return((AssetRepoType)FourCCFormatter.DeserializeUint(ref reader, formatterResolver));
 }