public override void WriteListBegin(TList list) { WriteByte((byte)list.ElementType); WriteI32(list.Count); }
/** * Write a array header. */ public override void WriteListBegin(TList list) { WriteCollectionBegin(list.ElementType, list.Count); }
public override TList ReadListBegin() { TList list = new TList(); list.ElementType = (TType)ReadByte(); list.Count = ReadI32(); return list; }
public override void WriteListBegin(TList list) { WriteJSONArrayStart(); WriteJSONString(GetTypeNameForTypeID(list.ElementType)); WriteJSONInteger(list.Count); }
public override TList ReadListBegin() { TList list = new TList(); ReadJSONArrayStart(); list.ElementType = GetTypeIDForTypeName(ReadJSONString(false)); list.Count = (int)ReadJSONInteger(); return list; }
public TCollection(TList list) : this(list.ElementType, list.Count) { }
public abstract void WriteListBegin(TList list);
public TSet(TList list) : this(list.ElementType, list.Count) { }