示例#1
0
        public override TCollection ReadCollectionBegin()
        {
            TCollection collection = new TCollection();

            collection.ElementType = (TType)ReadByte();
            collection.Count       = ReadI32();

            return(collection);
        }
示例#2
0
        public override TCollection ReadCollectionBegin()
        {
            TCollection collection = new TCollection();

            ReadJSONArrayStart();
            collection.ElementType = GetTypeIDForTypeName(ReadJSONString(false));
            collection.Count       = (int)ReadJSONInteger();
            return(collection);
        }
示例#3
0
 public abstract void WriteCollectionBegin(TCollection collection);
示例#4
0
 /**
  * Write a collection header.
  */
 public override void WriteCollectionBegin(TCollection collection)
 {
     WriteCollectionBegin(collection.ElementType, collection.Count);
 }
示例#5
0
 public override void WriteCollectionBegin(TCollection collection)
 {
     WriteByte((byte)collection.ElementType);
     WriteI32(collection.Count);
 }
示例#6
0
 public override void WriteCollectionBegin(TCollection collection)
 {
     WriteJSONArrayStart();
     WriteJSONString(GetTypeNameForTypeID(collection.ElementType));
     WriteJSONInteger(collection.Count);
 }