Esempio n. 1
0
 public ulong GetULong(int offset)
 {
     ComformeSize(offset, 8);
     return(Conv.GetULong(_packets, offset));
 }
Esempio n. 2
0
 public void SetULong(ulong val, int offset)
 {
     //ulong n = Util.htonl(val);
     //Set(Conv.GetBytes((long)n), 8, offset);
     Set(Conv.GetBytes(val), 8, offset);
 }
Esempio n. 3
0
        //指定したオフセットからのint値の取得
//        public int GetInt(int offset){
//            ComformeSize(offset, 4);
//            return Conv.GetInt(_packets, offset);
//        }
        //[C#]
        public uint GetUInt(int offset)
        {
            ComformeSize(offset, 4);
            return(Conv.GetUInt(_packets, offset));
        }
Esempio n. 4
0
 //指定したオフセットへのint値の設定
 public void SetUInt(uint val, int offset)
 {
     //uint n = Util.htonl(val);
     //Set(Conv.GetBytes(n), 4, offset);
     Set(Conv.GetBytes(val), 4, offset);
 }
Esempio n. 5
0
        //指定したオフセットからのShot値の取得
//        public short GetShort(int offset){
//            ComformeSize(offset, 2);
//            return Conv.GetShort(_packets, offset);
//        }
        //[C#]
        public ushort GetUShort(int offset)
        {
            ComformeSize(offset, 2);
            return(Conv.GetUShort(_packets, offset));
        }
Esempio n. 6
0
 //指定したオフセットへのShot値の設定
 public void SetUShort(ushort val, int offset)
 {
     //ushort n = Util.htons(val);
     //Set(Conv.GetBytes(n),2,offset);
     Set(Conv.GetBytes(val), 2, offset);
 }