Yes, before memcpy'ing make sure byte ordering in the stream allows you to.