public TransportGatewayAsync(TelegramDC dc) { this.dc = dc; socket = null; input = new CborInputMoveBuffer(512 * 1024); input.InputEvent += CheckInput; }
public TransportGateway() { socket = null; state = NetworkGatewayState.INIT; //inputStream = new MemoryStream(16000); input = new CborInputMoveBuffer(512 * 1024); input.InputEvent += CheckInput; }
/// <summary> /// Initializes a new instance of the <see cref="CborObjectStream"/> class. /// </summary> /// <param name="input"> /// The input. /// </param> public CborObjectStream(CborInput input) : base(new CborReader(input)) { this.input = input; }
public CborDynamicReader() { input = new CborInputChunks(); reader = new CborReader(input); parser = new CborDynamicParser(); reader.Listener = parser; }
/// <summary> /// Initializes a new instance of the <see cref="CborReader"/> class. /// </summary> /// <param name="input"> /// The input. /// </param> public CborReader(CborInput input) { this._input = input; // _listener = listener; this._input.InputEvent += this.InputOnInputEvent; // InputOnInputEvent(); }