Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            MessageStream ms = new MessageStream("aa");

            ms.WriteString("fefefefdsvvwq");

            ms.WriteU64(553434);
            ms.WriteS8(-123);

            ms.WriteF64(34.56);
            ms.WriteF32(12.0f);

            MessageStream rs = new MessageStream(ms.Data);
            string        a  = rs.ReadString();
            ulong         b  = rs.ReadU64();
            sbyte         c  = rs.ReadS8();
            double        d  = rs.ReadF64();
            float         e  = rs.ReadF32();
        }