Beispiel #1
0
        public List <Byte> toBytes()
        {
            List <Byte> list = header.toBytes();

            list.AddRange(HotRodUtils.vIntegerToBytes(keyLength));
            list.AddRange(key);
            return(list);
        }
Beispiel #2
0
        public List <Byte> toBytes()
        {
            List <Byte> list = header.toBytes();

            list.AddRange(HotRodUtils.vIntegerToBytes(keyLength));
            list.AddRange(key);
            list.Add(timeUnits);
            if ((timeUnits & 0xf0) != 0x70 && (timeUnits & 0xf0) != 0x80)
            {
                list.AddRange(HotRodUtils.vIntegerToBytes(lifeSpan));
            }
            if ((timeUnits & 0x0f) != 0x07 && (timeUnits & 0x0f) != 0x08)
            {
                list.AddRange(HotRodUtils.vIntegerToBytes(maxIdle));
            }
            list.AddRange(HotRodUtils.vIntegerToBytes(valueLength));
            list.AddRange(value);
            return(list);
        }
Beispiel #3
0
 public List <Byte> toBytes()
 {
     return(header.toBytes());
 }