Skip to content

Add Write(ReadOnlySpan<byte>) to VoiceTransmitStream

Mateusz Brawański requested to merge github/fork/MichalPetryka/write-span into master

Created by: MichalPetryka

Summary

Add an overload accepting ReadOnlySpan to Write in VoiceTransmitStream.

Details

n/a, Summary and Changes proposed explain everything.

Changes proposed

Copied the existing code into the new overload, changing the buffer.AsSpan to just use the provided ReadOnlySpan. Made the old Write use the new overload.

Notes

Since in .Net Standard 2.1 streams have a virtual Write with ReadOnlySpan i've made it override it there when NETSTANDARD2_1 is defined in case of the library updating to it.

Merge request reports

Loading