Java Bit Unset unsetBit(byte b, int pos)

Here you can find the source of unsetBit(byte b, int pos)

Description

unset Bit

License

Open Source License

Parameter

Parameter Description
b a parameter
pos a parameter

Declaration

public static byte unsetBit(byte b, int pos) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from   w ww .  ja v  a  2  s .co  m
     *
     * @param b
     * @param pos
     * @return
     */
    public static byte unsetBit(byte b, int pos) {
        return (byte) (b & ~(1 << pos));
    }
}

Related

  1. unset(byte[] bytes)
  2. unsetb(int num, int bitmask)
  3. UnsetBit(byte _bitset, byte bit)
  4. unsetBit(byte original, int bitToUnSet)
  5. unsetBit(byte[] b, int index)
  6. unsetBit(int f, int i)
  7. unSetBit(int integer, int bit)