public ulong GetULong() { ulong result = BitConverter.ToUInt64(_data, _position); _position += 8; return result; }
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); }