accessing lower nibble

This is a discussion on accessing lower nibble within the C++ Programming forums, part of the General Programming Boards category; given a wsabuf as WSABUF buf now what i want is a routine that could access the individual bits from ...

  1. #1
    arunksharma
    Guest

    Question accessing lower nibble

    given a wsabuf as

    WSABUF buf

    now what i want is a routine that could access the individual bits from the buf.buf .

    cause when i access like buf.buf[0] it gives me the first byte now what i want is the higher and the lower nibbles seperately and moreover i need the individual bits too ... how can i get hold the lower nibble is there any conversion routine like DWORD for the 32 bit

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    use & masking to mask off the correct bits [leaving the ones you want to access] and shifting to prep it...
    hasafraggin shizigishin oppashigger...

  3. #3
    arunkrsharma
    Guest
    thanx a lot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. vector : accessing values
    By rahulsk1947 in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2009, 09:26 PM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 01:20 PM
  3. Quick Sort
    By e66n06 in forum C++ Programming
    Replies: 13
    Last Post: 08-21-2007, 08:02 AM
  4. to lower or to upper that is the question!
    By verbity in forum C++ Programming
    Replies: 20
    Last Post: 04-25-2007, 06:42 PM
  5. Merge sort please
    By vasanth in forum C Programming
    Replies: 2
    Last Post: 11-09-2003, 11:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21