Skip to content

Conversation

benaadams
Copy link
Member

@BrennanConroy
Copy link
Member

@davidfowl Should we do this for SignalR too?

@davidfowl
Copy link
Member

@BrennanConroy yep. How many static arrays do we have? It would be nice to autogen them but if we don't have enough then maybe it doesn't matter.

@benaadams
Copy link
Member Author

Ideally could get the C# compiler to also recognise this pattern:

static ReadOnlySpan<byte> ConnectionIdPropertyNameBytes => Encoding.UTF8.GetBytes("connectionId");

As its pretty impenetrable to cast each char to byte individually

@benaadams
Copy link
Member Author

@jkotalik jkotalik merged commit 704094b into dotnet:master Feb 11, 2019
@benaadams benaadams deleted the ReadOnlySpan-byte- branch February 11, 2019 16:51
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants