🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #22133

Re: CRC16

#22133
From: Łukasz 'Maly' Ostrowski
Date: Wed, 30 Mar 2011 08:10
16 lines
1193 bytes
On Wed, 30 Mar 2011 01:01:27 -0700 (PDT), Rafał wrote:

> Witam,
> Do jednego projektów potrzebuje obliczyć CRC16 stringu. Znalazłem w
> sieci gotowe rozwiązanie ale po obliczeniu sumy należy ustawić
> najstarszy bit w obu bajtach na wartość 1.
> 
> Wie ktoś jak to zrobić?

b |= 1 << 7;

? ;-).

-- 
Pozdrawiam,
Łukasz 'Maly' Ostrowski.      http://l3v.eu/
Technical Details
Message-ID: <bogcr6ow7dpc$.5cbt8wbx79o3$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.dialog.net.pl!not-for-mail
References: <8f24d313-ce71-4cfc-bd90-273555744ca8@p13g2000yqh.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.dialog.net.pl!not-for-mail
From: Łukasz 'Maly' Ostrowski <maly@USUNnemo.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: CRC16
Date: Wed, 30 Mar 2011 10:10:28 +0200
Organization: Acme
Lines: 16
Message-ID: <bogcr6ow7dpc$.5cbt8wbx79o3$.dlg@40tude.net>
References: <8f24d313-ce71-4cfc-bd90-273555744ca8@p13g2000yqh.googlegroups.com>
NNTP-Posting-Host: static-78-9-71-129.ssp.dialog.net.pl
Mime-Version: 1.0
X-Trace: news.dialog.net.pl 1301472638 9273 78.9.71.129 (30 Mar 2011 08:10:38 GMT)
X-Complaints-To: abuse@dialog.net.pl
NNTP-Posting-Date: Wed, 30 Mar 2011 08:10:38 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit