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