[Mono-list] Inaccessible due to protection?
Brandon Perry
brandon at thresholdofthought.com
Mon Aug 27 22:15:42 EDT 2007
The following code for some reason is not able to be used because of
protection, but I can't figure out what on earth it could be. Google
comes up with things like using predefined var names and such, but I
don't think I am using any...
using System;
namespace bkhivesharp
{
public class BSwap
{
UInt16 BSwap_16(UInt16 n)
{
n = ((((n) >> 8) & 0xff) | (((n) & 0xff) << 8));
return n;
}
UInt32 BSwap_32(UInt32 n)
{
n = ((((n) & 0xff000000) >> 24) | (((n) & 0x00ff0000) >> 8)
|
(((n) & 0x0000ff00) << 8) | (((n) & 0x000000ff) << 24));
return n;
}
}
}
More information about the Mono-list
mailing list