public ReceivedMessagesSpan<BarCommand.ReceivedResponse> GetResponse(long requestId)
            {
                if (!responsesSorted)
                {
                    responseStorage.Sort(responseComparer);
                    responsesSorted = true;
                }

                var responseIndex = responseStorage.GetResponseIndex(requestId);
                if (responseIndex < 0)
                {
                    return ReceivedMessagesSpan<BarCommand.ReceivedResponse>.Empty();
                }

                return new ReceivedMessagesSpan<BarCommand.ReceivedResponse>(responseStorage, responseIndex, 1);
            }
            public ReceivedMessagesSpan <PlayerHeartbeat.ReceivedResponse> GetResponse(long requestId)
            {
                if (!responsesSorted)
                {
                    responseStorage.Sort(responseComparer);
                    responsesSorted = true;
                }

                var responseIndex = responseStorage.GetResponseIndex(requestId);

                if (responseIndex < 0)
                {
                    return(ReceivedMessagesSpan <PlayerHeartbeat.ReceivedResponse> .Empty());
                }

                return(new ReceivedMessagesSpan <PlayerHeartbeat.ReceivedResponse>(responseStorage, responseIndex, 1));
            }