LiteNetLib.Utils.NetDataReader.GetULong C# (CSharp) Method

GetULong() public method

public GetULong ( ) : ulong
return ulong
        public ulong GetULong()
        {
            ulong result = BitConverter.ToUInt64(_data, _position);
            _position += 8;
            return result;
        }

Usage Example

Example #1
0
        protected virtual SubscribeDelegate GetCallbackFromData(NetDataReader reader)
        {
            ulong hash = reader.GetULong();

            if (!_callbacks.TryGetValue(hash, out var action))
            {
                throw new ParseException("Undefined packet in NetDataReader");
            }
            return(action);
        }
All Usage Examples Of LiteNetLib.Utils.NetDataReader::GetULong