Beispiel #1
0
        public byte[] ToByte()
        {
            List <byte> buf = new List <byte>();

            buf.AddRange(StringUTil.ToBytes(ModuleIp));
            return(buf.ToArray());
        }
Beispiel #2
0
        public byte[] ToByte()
        {
            List <byte> buf = new List <byte>();

            buf.Add((WaveSerializer as IByteConvertable).ToByte());
            buf.AddRange(StringUTil.ToBytes(FilePath));
            return(buf.ToArray());
        }
Beispiel #3
0
        public byte[] ToByte()
        {
            List <byte> buf = new List <byte>();

            buf.Add((WaveSerializer as IByteConvertable).ToByte());
            buf.AddRange(new byte[3]);  //reserved bytes
            buf.AddRange(BitConverter.GetBytes(Port));
            buf.AddRange(StringUTil.ToBytes(ServerIp));
            return(buf.ToArray());
        }