yourbasic/bit

Get data field as byte slice

Tarliton opened this issue · 1 comments

Amazing library.

Could we have a function that returns the underlying data field as a slice of bytes?

I could make a PR if so.

Thanks

Thanks!
I've thought about adding access to the underlying data and decided against. The main reasons are that the result will depend on byte ordering and that it will make it difficult to optimize the implementation in the future.