Article View: alt.pl.comp.lang.csharp
Article #9592Re: operacje na bitach
From: Karol
Date: Tue, 25 Oct 2005 12:12
Date: Tue, 25 Oct 2005 12:12
22 lines
1356 bytes
1356 bytes
olek napisał(a): > > const int Maska = 0xFF; > int iWartosc; > byte byBit; > > iWartosc = 10; > > byBit = (byte)(iWartosc & Maska); > > Czyli przez operacje logiczna AND. Maskujesz wzytskie bajty poza > najmlodszym i sprawdzasz wynik . > > Pozdrawiam Olek > ---------------- Ok. Problem mam z negacją bitów wyniku:( Znalazłem coś takiego jak BitArray i BitConverter. Ale z BitArray nie wiem jak wyciągnoć 1 bajt:( A BitConverter nie ma negacji:( Pozdrawiam KArol
Technical Details
Message-ID:
<djl7bg$u30$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mailReferences:
<djkvmh$ugp$1@news.onet.pl> <djl2uc$bp5$1@atlantis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail From: Karol <karol69@op.pl> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: operacje na bitach Date: Tue, 25 Oct 2005 14:12:54 +0200 Organization: Onet.pl Lines: 22 Message-ID: <djl7bg$u30$1@news.onet.pl> References: <djkvmh$ugp$1@news.onet.pl> <djl2uc$bp5$1@atlantis.news.tpi.pl> NNTP-Posting-Host: 195.187.106.194 Mime-Version: 1.0 X-Trace: news.onet.pl 1130242224 30816 195.187.106.194 (25 Oct 2005 12:10:24 GMT) X-Complaints-To: usenet@news.onet.pl NNTP-Posting-Date: Tue, 25 Oct 2005 12:10:24 +0000 (UTC) X-Sender: aqTlAiv2oVys3ZPuUtr18w== In-Reply-To: <djl2uc$bp5$1@atlantis.news.tpi.pl> X-Accept-Language: pl, en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit