Marvell Technology Interview Question

How to copy select bits from a bytstream or an incoming packet buffer