Initial commit
Initial commit til Git. V2 er deployed
This commit is contained in:
15
PointOfSale/Utilities/ESCPOS_NET/ByteExtensions.cs
Normal file
15
PointOfSale/Utilities/ESCPOS_NET/ByteExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace ESCPOS_NET
|
||||
{
|
||||
public static class ByteExtensions
|
||||
{
|
||||
public static bool IsBitSet(this byte b, int offset)
|
||||
{
|
||||
return (b & (1 << offset)) != 0;
|
||||
}
|
||||
|
||||
public static bool IsBitNotSet(this byte b, int offset)
|
||||
{
|
||||
return (b & (1 << offset)) == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user