Files
BinaryUtils/src/main/kotlin/BinCheck.kt

29 lines
592 B
Kotlin

package ru.thiflict
/**
* Объект для проверок двоичного кода
*
* Репозиторий: https://git.ds1.thiflict.ru/Thiflict/BinaryUtils
*
* @author Thiflict
*
* @since[1.0.0]
*
*/
object BinCheck {
/**
* Проверяет наличие единицы в заданом регистре
*
* Тип данных [Int]
*
* Пример:
* ```
* checkRegisterShort(0100, 2)
* ```
* @return true
*/
fun checkRegisterShort(input: Int, register: Int): Boolean {
val mask = 1 shl 2
}
}