public WriterRawMessage ( bool withoutHeader = false ) : H2NBinaryWriter | ||
withoutHeader | bool | |
Результат | H2NBinaryWriter |
private void WriteBound(FlowWriter writer) { var data = writer.WriterRawMessage(); data.Write((ushort)0x22); data.Write(_boundId); data.Write(3); }
private bool WriteId(Group @group, Peer peer, FlowWriter writer) { H2NBinaryWriter response; if (writer != null) { response = writer.WriterRawMessage(true); } else { if (!peer._groups.ContainsKey(@group) || peer._groups[@group].Writer == null) { return(false); } response = peer._groups[@group].Writer.WriterRawMessage(true); } response.Write((byte)0x0b); response.Write(peer.Id); return(true); }
private void WriteBound(FlowWriter writer) { var data = writer.WriterRawMessage(); data.Write((ushort)0x22); data.Write(_boundId); data.Write(3); }