예제 #1
0
		public override TSet ReadSetBegin()
		{
			TSet set = new TSet();
			ReadJSONArrayStart();
			set.ElementType = GetTypeIDForTypeName(ReadJSONString(false));
			set.Count = (int)ReadJSONInteger();
			return set;
		}
예제 #2
0
		public override void WriteSetBegin(TSet set)
		{
			WriteJSONArrayStart();
			WriteJSONString(GetTypeNameForTypeID(set.ElementType));
			WriteJSONInteger(set.Count);
		}
예제 #3
0
		public abstract void WriteSetBegin(TSet set);
예제 #4
0
 /**
  * Write a set header.
  */
 public override void WriteSetBegin(TSet set)
 {
     WriteCollectionBegin(set.ElementType, set.Count);
 }
예제 #5
0
		public override TSet ReadSetBegin()
		{
			TSet set = new TSet();
			set.ElementType = (TType)ReadByte();
			set.Count = ReadI32();

			return set;
		}
예제 #6
0
		public override void WriteSetBegin(TSet set)
		{
			WriteByte((sbyte)set.ElementType);
			WriteI32(set.Count);
		}
예제 #7
0
 public override void WriteSetBegin(TSet tSet)  
 {
     WrappedProtocol.WriteSetBegin(tSet);
 }
예제 #8
0
 /**
  * Write a set header.
  */
 public override void WriteSetBegin(TSet set)
 {
     WriteCollectionBegin(set.ElementType, set.Count);
 }
예제 #9
0
 public override void WriteSetBegin(TSet set)
 {
     WriteJSONArrayStart();
     WriteJSONString(GetTypeNameForTypeID(set.ElementType));
     WriteJSONInteger(set.Count);
 }