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); }
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; }
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); }
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; }
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); }