Начало положено.
This commit is contained in:
@@ -1,5 +1,29 @@
|
||||
package ru.thiflict
|
||||
|
||||
fun checkRegister(input: Long, register: Int) {
|
||||
|
||||
/**
|
||||
* Объект для проверок двоичного кода
|
||||
*
|
||||
* Репозиторий: 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user