Jump to content

Recommended Posts

Posted

I'm implementing a specification to send and receive data from an external device. The 'lowest' layer which accepts a byte array is done but I'm having trouble converting all the variables from the upper layer to a byte array.

 

For example, there is an integer field that is 4 bits long. Let's say I have the following variables:

 

varone(2) as byte

vartwo as byte

varthree(4) as bitarray 'an integer field

varfour(3) as byte

varfive as byte

varsix(4) as bitarray 'a second integer field

 

How do I take all these variables together (preserving the sequence) to a single byte array?

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...