示例#1
0
 public static void WriteBar(this MemoryBuffer buffer, LrpServer.Net.LrpBar arg)
 {
     buffer.WriteDouble(arg.Open);
     buffer.WriteDouble(arg.Close);
     buffer.WriteDouble(arg.High);
     buffer.WriteDouble(arg.Low);
     buffer.WriteDouble(arg.Volume);
     buffer.WriteTime(arg.From);
 }
示例#2
0
		public static LrpServer.Net.LrpBar[] ReadBarArray(this MemoryBuffer buffer)
		{
			int length = buffer.ReadCount();
			var result = new LrpServer.Net.LrpBar[length];
			for(int index = 0; index < length; ++index)
			{
				result[index] = buffer.ReadBar();
			}
			return result;
		}
示例#3
0
        public static LrpServer.Net.LrpBar[] ReadBarArray(this MemoryBuffer buffer)
        {
            int length = buffer.ReadCount();
            var result = new LrpServer.Net.LrpBar[length];

            for (int index = 0; index < length; ++index)
            {
                result[index] = buffer.ReadBar();
            }
            return(result);
        }
示例#4
0
		public static LrpServer.Net.LrpBar ReadBar(this MemoryBuffer buffer)
		{
			var result = new LrpServer.Net.LrpBar();
			result.Open = buffer.ReadDouble();
			result.Close = buffer.ReadDouble();
			result.High = buffer.ReadDouble();
			result.Low = buffer.ReadDouble();
			result.Volume = buffer.ReadDouble();
			result.From = buffer.ReadTime();
			return result;
		}
示例#5
0
        public static LrpServer.Net.LrpBar ReadBar(this MemoryBuffer buffer)
        {
            var result = new LrpServer.Net.LrpBar();

            result.Open   = buffer.ReadDouble();
            result.Close  = buffer.ReadDouble();
            result.High   = buffer.ReadDouble();
            result.Low    = buffer.ReadDouble();
            result.Volume = buffer.ReadDouble();
            result.From   = buffer.ReadTime();
            return(result);
        }