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(); }
public void Serialize(ref JsonWriter writer, AssetRepoType value, IJsonFormatterResolver formatterResolver) { FourCCFormatter.SerializeUint(ref writer, (ushort)value, formatterResolver, "X3"); }
public AssetRepoType Deserialize(ref JsonReader reader, IJsonFormatterResolver formatterResolver) { return((AssetRepoType)FourCCFormatter.DeserializeUint(ref reader, formatterResolver)); }