question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Byte based operations?

See original GitHub issue

Just 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:closed
  • Created 2 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jcurlcommented, Oct 26, 2021

This is now integrated and referenced. It will be in the next v3.0.0 release.

0reactions
jcurlcommented, Oct 24, 2021

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.).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found