public HeaderBufferSpan Substring(int startIndex, int length)
{
Debug.Assert(startIndex >= 0);
Debug.Assert(length >= 0);
Debug.Assert(startIndex <= Length - length);
if (length == 0)
{
return Empty;
}
if (startIndex == 0 && length == Length)
{
return this;
}
return new HeaderBufferSpan(_pointer + startIndex, length);
}