예제 #1
0
 public EchoPack(IntegerDataArray _iarray, FloatDataArray _farray, StringDataArray _sarray, IntegerDataMap _imap, FloatDataMap _fmap, StringDataMap _smap)
 {
     this._iarray = _iarray;
     this._farray = _farray;
     this._sarray = _sarray;
     this._imap   = _imap;
     this._fmap   = _fmap;
     this._smap   = _smap;
 }
예제 #2
0
 public EchoPack()
 {
     _iarray = new IntegerDataArray();
     _farray = new FloatDataArray();
     _sarray = new StringDataArray();
     _imap   = new IntegerDataMap();
     _fmap   = new FloatDataMap();
     _smap   = new StringDataMap();
 }
예제 #3
0
 public int __decode(byte[] binData, ref int pos)
 {
     this._iarray = new IntegerDataArray();
     this._iarray.__decode(binData, ref pos);
     this._farray = new FloatDataArray();
     this._farray.__decode(binData, ref pos);
     this._sarray = new StringDataArray();
     this._sarray.__decode(binData, ref pos);
     this._imap = new IntegerDataMap();
     this._imap.__decode(binData, ref pos);
     this._fmap = new FloatDataMap();
     this._fmap.__decode(binData, ref pos);
     this._smap = new StringDataMap();
     this._smap.__decode(binData, ref pos);
     return(pos);
 }
예제 #4
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            if (this._iarray == null)
            {
                this._iarray = new IntegerDataArray();
            }
            data.AddRange(this._iarray.__encode());
            if (this._farray == null)
            {
                this._farray = new FloatDataArray();
            }
            data.AddRange(this._farray.__encode());
            if (this._sarray == null)
            {
                this._sarray = new StringDataArray();
            }
            data.AddRange(this._sarray.__encode());
            if (this._imap == null)
            {
                this._imap = new IntegerDataMap();
            }
            data.AddRange(this._imap.__encode());
            if (this._fmap == null)
            {
                this._fmap = new FloatDataMap();
            }
            data.AddRange(this._fmap.__encode());
            if (this._smap == null)
            {
                this._smap = new StringDataMap();
            }
            data.AddRange(this._smap.__encode());
            return(data);
        }