public void Write(RespType type) { if (_currentSpan.IsEmpty) { Flush(); } _currentSpan[0] = (byte)type; Commit(1); }
public static object RespObj(RespType type, string msg, string[] replyTitles = null, (string Title, string Subtitle, string PostBack, string CardImg, string BtnText)[] cards = null,
internal static void RespTypeNotImplemented(RespType type, [CallerMemberName] string?caller = null) => throw new NotImplementedException($"RESP type not implemented by '{caller}': {type}");
public void SimpleExamples(string payload, RespType expectedType, string expectedText) => Verify(payload, RespValue.Create(expectedType, expectedText), null);
/// <summary> /// Construtor passando o tipo de funcao e o tipo de solucao /// </summary> public ObjectiveFunction(FuncType Type, RespType solution) { Z = new List <Tuple <string, double> >( ); Solution = solution; }
/// <summary> /// Construtor passando o tipo de funcao /// </summary> public ObjectiveFunction(FuncType funcType) { Z = new List <Tuple <string, double> >( ); Type = funcType; Solution = RespType.NotASolution; }
private byte[] FormatMessage(RespType type, string message) { return _encoder.GetBytes(string.Format("{0}{1}{2}", (int) type, BEL, message)); }