By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,389 Members | 1,844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,389 IT Pros & Developers. It's quick & easy.

shift array of bytes

P: n/a
i have an array of bytes from variable length and i need to shift it
in variable size of bits between 1-7. do someone know about
constructive way to do it? beside iterate the array and deal with each
byte or word each time .
thanks
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"itzik peretz" <it***@tracespan.com> wrote in message
news:c6**************************@posting.google.c om...
i have an array of bytes from variable length and i need to shift it
in variable size of bits between 1-7. do someone know about
constructive way to do it? beside iterate the array and deal with each
byte or word each time .
thanks


You'll have to iterate, sorry. There may be some machine-code instructions
on certain processors that let you do bit-shifts across a span of memory,
but that's assembler, and platform-specific, not something you can do in
standard C++.

-Howard
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.