Comments (2)
I've spent all day trying to determine what a correct answer to this objectively reasonable question is. I've decided that LittleEndian
is probably the more acceptable candidate to be considered "native" than is BigEndian
, but both orders have pretty good reason to be used. Ultimately, the specific order doesn't matter for memory-only cases, and if you need to create an I/O buffer, you are already following a specification that forces you to pick one.
I am putting this article here for my records; you also may find it interesting: *Reading bits in far too many ways, part 1.
At this time, I believe I have been convinced to switch the default Cursor
to LittleEndian
; I have not yet been persuaded to name either of them "Native
", but I am weighing renaming both of them away from the term "endian", to be MsbFirst
and LsbFirst
.
Unfortunately I don't think I can add a NativeEndian
name at this time; I will leave this issue open and keep thinking on it until I come to a firmer answer.
from bitvec.
I've ultimately decided that you are correct. The 0.16
release will switch to a Local
cursor and a Word
fundamental, which are aliased to the target machine's endianness and CPU word size. I cannot give a release date at this time, as 0.16
is bundling a lot of refinement work.
I'm going to mark this issue as closed in the commit to master that adds those aliases, and I will comment again when it reaches crates.io.
from bitvec.
Related Issues (20)
- Use #[track_caller] attribute HOT 2
- Dead documentation link HOT 4
- `to_bitvec` and related functions returning invalid values HOT 2
- `bitvec` contains unsound global state HOT 4
- `chunks_exact_mut()` occasionally doesn't return the last chunk when `step_by()` is involved
- Difference between `BitVec` and `BitVec<T, O>`? HOT 1
- `copy_within` panics on empty range
- `bitarr!` macro link incorrect
- Implement `BitStore` for signed integer types
- impl `TryFrom<BitVec>` for `BitArray`
- How to convert bitvec to slice? HOT 1
- Build for STM32 (no_std, thumbv7m-none-eabi) - no global memory allocator
- Regarding the safety of `chunks_mut(...).remove_alias()` HOT 1
- `BitSlice::shift_start` and `BitSlice::shift_end` argument bounds incorrectly documented
- Incorrect handling of end index in BitVec::extend_from_within
- Implement `Send` for `BitValIter`
- How to "not" an entire `BitVec` in place? HOT 1
- Example of zero-initialized BitVec?
- Cargo check failed with error: could not compile `bitvec` (lib) HOT 2
- crate doesnt compile on arduino HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitvec.