Re: [Tutor] Shifting arrays as though they are a 'word'

2018-10-06 Thread Steven D'Aprano
On Fri, Oct 05, 2018 at 04:17:53PM -0400, Chip Wachob wrote: > Hello, > > I was not able to find any answers in the archive on this one. > > I'm wondering if this task can be done in a better way than what I've > attempted.. > > I have an array of bytes. Up to 64, which makes for 512 bits. > >

Re: [Tutor] Shifting arrays as though they are a 'word'

2018-10-05 Thread Cameron Simpson
On 05Oct2018 16:17, Chip Wachob wrote: I have an array of bytes. Up to 64, which makes for 512 bits. I am reading these bytes in serially, and once I have a collection of them, I want to shift them by 'n' bits. The size of the array and the number of bits are both variable up to the limit of

Re: [Tutor] Shifting arrays as though they are a 'word'

2018-10-05 Thread Alan Gauld via Tutor
On 05/10/18 21:17, Chip Wachob wrote: > > I have an array of bytes. Up to 64, which makes for 512 bits. > > I am reading these bytes in serially, and once I have a collection of > them, I want to shift them by 'n' bits. The size of the array and the > number of bits are both variable up to the l

[Tutor] Shifting arrays as though they are a 'word'

2018-10-05 Thread Chip Wachob
Hello, I was not able to find any answers in the archive on this one. I'm wondering if this task can be done in a better way than what I've attempted.. I have an array of bytes. Up to 64, which makes for 512 bits. I am reading these bytes in serially, and once I have a collection of them, I wa