Byte based operations?
See original GitHub issueJust wondering why there are no byte array based (or even better Span<byte>
) operations are implemented. Seems all based on string and char operations. Even the CircularBuffer
used in the ReadToCache
class uses char
as type, while I would expect it to be byte based and provide conversions to strings.
Any ReadExistingBytes()
method or something like this would be pretty useful, but the whole SerialPortStream implementation is based on chars.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Bitwise operation
In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral at the level of its...
Read more >Bitwise operations in C
Bitwise operations are contrasted by byte-level operations which characterize the bitwise operators' logical counterparts, the AND, OR, NOT operators.
Read more >What is Bitwise?
A bitwise operation operates on two-bit patterns of equal lengths by positionally matching their individual bits. For example, a logical AND (&) of...
Read more >Basics of Bit Manipulation Tutorials & Notes
Bitwise Operations are faster and closer to the system and sometimes optimize the program to a good level. We all know that 1...
Read more >Bitwise Operators
A byte consists of 8 bits, and is special because it is usually the smallest unit of directly addressible storage. This means -...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is now integrated and referenced. It will be in the next v3.0.0 release.
I’ll be closing this issue when I have a full implementation of supporting
Read(Span<byte>)
,ReadAsync(Memory<byte>)
,Write(ReadOnlySpan<byte>)
,WriteAsync(ReadOnlyMemory<byte.)
.