Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bit twiddling in C#
Message
 
 
À
15/02/2006 12:18:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01096485
Message ID:
01096533
Vues:
18
>>Why add the shift bit op? Just use:
>>(mybyte & 128) != 0
>
>Just because to show what we are doing. When dealing with bits I find it more 'not hard coded' if I use bitpostion instead:)

FWIW I did not find Michael's solution obscure or hard coded at all, given that one understands hexadecimal. Which one should if one is going to bit twiddle....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform