Exemplo n.º 1
0
		public override TList ReadListBegin()
		{
			var list = new TList();
			list.ElementType = (TType) ReadByte();
			list.Count = ReadI32();

			return list;
		}
Exemplo n.º 2
0
		public override void WriteListBegin(TList list)
		{
			WriteByte((byte) list.ElementType);
			WriteI32(list.Count);
		}
Exemplo n.º 3
0
		public abstract void WriteListBegin(TList list);
Exemplo n.º 4
0
		public override TList ReadListBegin()
		{
			var list = new TList();
			ReadJSONArrayStart();
			list.ElementType = GetTypeIDForTypeName(ReadJSONString(false));
			list.Count = (int) ReadJSONInteger();
			return list;
		}
Exemplo n.º 5
0
		public override void WriteListBegin(TList list)
		{
			WriteJSONArrayStart();
			WriteJSONString(GetTypeNameForTypeID(list.ElementType));
			WriteJSONInteger(list.Count);
		}
 /**
  * Write a list header.
  */
 public override void WriteListBegin(TList list)
 {
     WriteCollectionBegin(list.ElementType, list.Count);
 }