Skip to content

Conversation

@TIHan
Copy link
Contributor

@TIHan TIHan commented Jan 19, 2020

This isn't causing an issue, but to make it behave like Memory in .NET, it should not throw; the same goes for creating a stream out of it.

@KevinRansom KevinRansom reopened this Jan 22, 2020
@KevinRansom KevinRansom merged commit d35b0e9 into dotnet:master Jan 23, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
…otnet#8282)

* Slicing and copying on ByteMemory should not throw if length is zero

* Added slice count check

* Changed length check on stream creation

* Remove empty

* Minor format change

* Check length before using AsStream

* Remove exception throwing from creating a stream

* Added checkCount

* Remove checkReadCount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants