public override TSet ReadSetBegin() { TSet set = new TSet(); set.ElementType = (TType)ReadByte(); set.Count = ReadI32(); return set; }
public override void WriteSetBegin(TSet set) { WriteByte((sbyte)set.ElementType); WriteI32(set.Count); }
public abstract void WriteSetBegin(TSet set);
/** * Write a set header. */ public override void WriteSetBegin(TSet set) { WriteCollectionBegin(set.ElementType, set.Count); }
public override TSet ReadSetBegin() { TSet set = new TSet(); ReadJSONArrayStart(); set.ElementType = GetTypeIDForTypeName(ReadJSONString(false)); set.Count = (int)ReadJSONInteger(); return set; }
public override void WriteSetBegin(TSet set) { WriteJSONArrayStart(); WriteJSONString(GetTypeNameForTypeID(set.ElementType)); WriteJSONInteger(set.Count); }