예제 #1
0
 public override void WriteListBegin(TList list)
 {
     WriteByte((byte)list.ElementType);
     WriteI32(list.Count);
 }
예제 #2
0
 /**
  * Write a array header.
  */
 public override void WriteListBegin(TList list)
 {
     WriteCollectionBegin(list.ElementType, list.Count);
 }
예제 #3
0
        public override TList ReadListBegin()
        {
            TList list = new TList();
            list.ElementType = (TType)ReadByte();
            list.Count = ReadI32();

            return list;
        }
예제 #4
0
 public override void WriteListBegin(TList list)
 {
     WriteJSONArrayStart();
     WriteJSONString(GetTypeNameForTypeID(list.ElementType));
     WriteJSONInteger(list.Count);
 }
예제 #5
0
 public override TList ReadListBegin()
 {
     TList list = new TList();
     ReadJSONArrayStart();
     list.ElementType = GetTypeIDForTypeName(ReadJSONString(false));
     list.Count = (int)ReadJSONInteger();
     return list;
 }
예제 #6
0
 public TCollection(TList list)
     : this(list.ElementType, list.Count)
 {
 }
예제 #7
0
파일: Protocol.cs 프로젝트: akumetsuv/flood
 public abstract void WriteListBegin(TList list);
예제 #8
0
파일: Set.cs 프로젝트: tritao/flood
 public TSet(TList list)
     : this(list.ElementType, list.Count)
 {
 }